#2E56AA#2E56AA

#2E56AA is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.2% C 0.142 H 263.0°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#2E56AA
RGBrgb(46, 86, 170)
HSLhsl(221, 57%, 42%)
HSVhsv(221, 73%, 67%)
CMYKcmyk(72.9%, 49.4%, 0%, 33.3%)
CIE-LABlab(38.09, 15.64, -49.22)
CIE-LCHlch(38.09, 51.64, 287.63°)
OKLaboklab(47.16% -0.0174 -0.1413)
OKLCHoklch(47.16% 0.142 263)
XYZxyz(11.7076, 10.1374, 39.3621)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E56AA #AA822E
analogous
#2E94AA #2E56AA #442EAA
triadic
#2E56AA #AA2E56 #56AA2E
tetradic
#2E56AA #AA2E94 #AA822E #2EAA44
square
#2E56AA #AA2E94 #AA822E #2EAA44
split-complementary
#2E56AA #AA442E #94AA2E
monochromatic
#14254A #213E7A #2E56AA #4873CD #7898DA

Accessibility & contrast

On white

6.94
#2E56AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2E56AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E56AA
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E56AA#FFFFFF#000000##FFFFFF
##2E56AA1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2660AD
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#006A78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2e56aa;
/* rgb */ color: rgb(46, 86, 170);
/* oklch */ color: oklch(47.2% 0.142 263.0);
Tailwind
colors: {
  custom: {
    50: '#7785c4',
    500: '#2e56aa',
    950: '#000000',
  },
}
SCSS
$custom: #2e56aa;
$custom-light: #7785c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e56aa",
  "rgb": {
    "r": 46,
    "g": 86,
    "b": 170
  },
  "hsl": {
    "h": 220.645,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4716,
    "c": 0.14238,
    "h": 263
  },
  "luminance": 0.10139
}

Semantic roles & 50–950 ramp

primary
#2E56AA
secondary
#C3A871
accent
#AF47E1
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2E56AA

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

Preview Lab → · Contrast checker → · Palette generator →

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