#2A57CA#2A57CA

#2A57CA is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.7% C 0.186 H 264.4°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#2A57CA
RGBrgb(42, 87, 202)
HSLhsl(223, 66%, 48%)
HSVhsv(223, 79%, 79%)
CMYKcmyk(79.2%, 56.9%, 0%, 20.8%)
CIE-LABlab(40.53, 26.67, -64.02)
CIE-LCHlch(40.53, 69.35, 292.62°)
OKLaboklab(49.7% -0.0182 -0.1849)
OKLCHoklch(49.7% 0.186 264.4)
XYZxyz(15.0199, 11.5711, 57.3075)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A57CA #CA9D2A
analogous
#2AA7CA #2A57CA #4D2ACA
triadic
#2A57CA #CA2A57 #57CA2A
tetradic
#2A57CA #CA2AA7 #CA9D2A #2ACA4D
square
#2A57CA #CA2AA7 #CA9D2A #2ACA4D
split-complementary
#2A57CA #CA4D2A #A7CA2A
monochromatic
#152B65 #1F4197 #2A57CA #557BDC #88A3E6

Accessibility & contrast

On white

6.34
#2A57CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2A57CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A57CA
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A57CA#FFFFFF#000000##FFFFFF
##2A57CA1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#0058C8
Tritanopia (blue-blind)
#007488
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a57ca;
/* rgb */ color: rgb(42, 87, 202);
/* oklch */ color: oklch(49.7% 0.186 264.4);
Tailwind
colors: {
  custom: {
    50: '#7d85db',
    500: '#2a57ca',
    950: '#000000',
  },
}
SCSS
$custom: #2a57ca;
$custom-light: #7d85db;
$custom-dark: #000000;
JSON
{
  "hex": "#2a57ca",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 202
  },
  "hsl": {
    "h": 223.125,
    "s": 65.574,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49699,
    "c": 0.18579,
    "h": 264.4
  },
  "luminance": 0.11573
}

Semantic roles & 50–950 ramp

primary
#2A57CA
secondary
#D0B980
accent
#B93FE9
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2A57CA

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2A57CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva