#2E3E87#2E3E87

#2E3E87 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.3% C 0.123 H 270.5°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#2E3E87
RGBrgb(46, 62, 135)
HSLhsl(229, 49%, 35%)
HSVhsv(229, 66%, 53%)
CMYKcmyk(65.9%, 54.1%, 0%, 47.1%)
CIE-LABlab(28.84, 18.50, -42.92)
CIE-LCHlch(28.84, 46.74, 293.32°)
OKLaboklab(39.35% 0.001 -0.1232)
OKLCHoklch(39.35% 0.123 270.5)
XYZxyz(7.2210, 5.7747, 23.6511)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3E87 #87772E
analogous
#2E6B87 #2E3E87 #4A2E87
triadic
#2E3E87 #872E3E #3E872E
tetradic
#2E3E87 #872E6B #87772E #2E874A
square
#2E3E87 #872E6B #87772E #2E874A
split-complementary
#2E3E87 #874A2E #6B872E
monochromatic
#0F142C #1E2959 #2E3E87 #3E53B5 #6577CA

Accessibility & contrast

On white

9.74
#2E3E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2E3E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3E87
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3E87#FFFFFF#000000##FFFFFF
##2E3E871.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10488A
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e3e87;
/* rgb */ color: rgb(46, 62, 135);
/* oklch */ color: oklch(39.3% 0.123 270.5);
Tailwind
colors: {
  custom: {
    50: '#7173aa',
    500: '#2e3e87',
    950: '#000000',
  },
}
SCSS
$custom: #2e3e87;
$custom-light: #7173aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3e87",
  "rgb": {
    "r": 46,
    "g": 62,
    "b": 135
  },
  "hsl": {
    "h": 229.213,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39349,
    "c": 0.12316,
    "h": 270.5
  },
  "luminance": 0.05775
}

Semantic roles & 50–950 ramp

primary
#2E3E87
secondary
#B1A360
accent
#C04FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2E3E87

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

Preview Lab → · Contrast checker → · Palette generator →

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