#2E3A9D#2E3A9D

#2E3A9D is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.160 H 271.8°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#2E3A9D
RGBrgb(46, 58, 157)
HSLhsl(234, 55%, 40%)
HSVhsv(234, 71%, 62%)
CMYKcmyk(70.7%, 63.1%, 0%, 38.4%)
CIE-LABlab(29.51, 29.36, -55.32)
CIE-LCHlch(29.51, 62.63, 297.95°)
OKLaboklab(40.4% 0.005 -0.1597)
OKLCHoklch(40.4% 0.16 271.8)
XYZxyz(8.7235, 6.0404, 32.5979)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3A9D #9D912E
analogous
#2E719D #2E3A9D #5A2E9D
triadic
#2E3A9D #9D2E3A #3A9D2E
tetradic
#2E3A9D #9D2E71 #9D912E #2E9D5A
square
#2E3A9D #9D2E71 #9D912E #2E9D5A
split-complementary
#2E3A9D #9D5A2E #719D2E
monochromatic
#12173E #20296E #2E3A9D #414FC7 #707BD5

Accessibility & contrast

On white

9.51
#2E3A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2E3A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3A9D
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3A9D#FFFFFF#000000##FFFFFF
##2E3A9D1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2e3a9d;
/* rgb */ color: rgb(46, 58, 157);
/* oklch */ color: oklch(40.4% 0.160 271.8);
Tailwind
colors: {
  custom: {
    50: '#7670bb',
    500: '#2e3a9d',
    950: '#000000',
  },
}
SCSS
$custom: #2e3a9d;
$custom-light: #7670bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3a9d",
  "rgb": {
    "r": 46,
    "g": 58,
    "b": 157
  },
  "hsl": {
    "h": 233.514,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40403,
    "c": 0.15974,
    "h": 271.8
  },
  "luminance": 0.06041
}

Semantic roles & 50–950 ramp

primary
#2E3A9D
secondary
#BDB46A
accent
#CE4ADE
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E3A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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