#2E3AA2#2E3AA2

#2E3AA2 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.9% C 0.167 H 271.7°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#2E3AA2
RGBrgb(46, 58, 162)
HSLhsl(234, 56%, 41%)
HSVhsv(234, 72%, 64%)
CMYKcmyk(71.6%, 64.2%, 0%, 36.5%)
CIE-LABlab(29.95, 31.18, -57.64)
CIE-LCHlch(29.95, 65.54, 298.41°)
OKLaboklab(40.86% 0.0048 -0.1665)
OKLCHoklch(40.86% 0.167 271.7)
XYZxyz(9.1592, 6.2147, 34.8923)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3AA2 #A2962E
analogous
#2E74A2 #2E3AA2 #5C2EA2
triadic
#2E3AA2 #A22E3A #3AA22E
tetradic
#2E3AA2 #A22E74 #A2962E #2EA25C
square
#2E3AA2 #A22E74 #A2962E #2EA25C
split-complementary
#2E3AA2 #A25C2E #74A22E
monochromatic
#131843 #202972 #2E3AA2 #4351CA #737DD7

Accessibility & contrast

On white

9.36
#2E3AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2E3AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3AA2
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3AA2#FFFFFF#000000##FFFFFF
##2E3AA21.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e3aa2;
/* rgb */ color: rgb(46, 58, 162);
/* oklch */ color: oklch(40.9% 0.167 271.7);
Tailwind
colors: {
  custom: {
    50: '#7770be',
    500: '#2e3aa2',
    950: '#000000',
  },
}
SCSS
$custom: #2e3aa2;
$custom-light: #7770be;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3aa2",
  "rgb": {
    "r": 46,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 233.793,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40856,
    "c": 0.16654,
    "h": 271.7
  },
  "luminance": 0.06216
}

Semantic roles & 50–950 ramp

primary
#2E3AA2
secondary
#BFB66D
accent
#D049DF
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E3AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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