#2E398B#2E398B

#2E398B is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.6% C 0.136 H 272.6°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#2E398B
RGBrgb(46, 57, 139)
HSLhsl(233, 50%, 36%)
HSVhsv(233, 67%, 55%)
CMYKcmyk(66.9%, 59%, 0%, 45.5%)
CIE-LABlab(27.77, 23.39, -47.13)
CIE-LCHlch(27.77, 52.62, 296.39°)
OKLaboklab(38.64% 0.0061 -0.1356)
OKLCHoklch(38.64% 0.136 272.6)
XYZxyz(7.2485, 5.3705, 25.0757)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E398B #8B802E
analogous
#2E688B #2E398B #522E8B
triadic
#2E398B #8B2E39 #398B2E
tetradic
#2E398B #8B2E68 #8B802E #2E8B52
square
#2E398B #8B2E68 #8B802E #2E8B52
split-complementary
#2E398B #8B522E #688B2E
monochromatic
#10132F #1F265D #2E398B #3D4CB9 #6773CD

Accessibility & contrast

On white

10.12
#2E398B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2E398B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E398B
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E398B#FFFFFF#000000##FFFFFF
##2E398B1.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2e398b;
/* rgb */ color: rgb(46, 57, 139);
/* oklch */ color: oklch(38.6% 0.136 272.6);
Tailwind
colors: {
  custom: {
    50: '#726fae',
    500: '#2e398b',
    950: '#000000',
  },
}
SCSS
$custom: #2e398b;
$custom-light: #726fae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e398b",
  "rgb": {
    "r": 46,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 232.903,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38642,
    "c": 0.13576,
    "h": 272.6
  },
  "luminance": 0.05371
}

Semantic roles & 50–950 ramp

primary
#2E398B
secondary
#B3AA61
accent
#C94EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2E398B

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

Preview Lab → · Contrast checker → · Palette generator →

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