#2E3D87#2E3D87

#2E3D87 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.1% C 0.125 H 270.9°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#2E3D87
RGBrgb(46, 61, 135)
HSLhsl(230, 49%, 35%)
HSVhsv(230, 66%, 53%)
CMYKcmyk(65.9%, 54.8%, 0%, 47.1%)
CIE-LABlab(28.56, 19.19, -43.37)
CIE-LCHlch(28.56, 47.43, 293.86°)
OKLaboklab(39.14% 0.0021 -0.1245)
OKLCHoklch(39.14% 0.125 270.9)
XYZxyz(7.1672, 5.6670, 23.6331)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3D87 #87782E
analogous
#2E6987 #2E3D87 #4C2E87
triadic
#2E3D87 #872E3D #3D872E
tetradic
#2E3D87 #872E69 #87782E #2E874C
square
#2E3D87 #872E69 #87782E #2E874C
split-complementary
#2E3D87 #874C2E #69872E
monochromatic
#0F142C #1E2859 #2E3D87 #3E52B5 #6576CA

Accessibility & contrast

On white

9.84
#2E3D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2E3D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3D87
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3D87#FFFFFF#000000##FFFFFF
##2E3D871.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C478A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e3d87;
/* rgb */ color: rgb(46, 61, 135);
/* oklch */ color: oklch(39.1% 0.125 270.9);
Tailwind
colors: {
  custom: {
    50: '#7172aa',
    500: '#2e3d87',
    950: '#000000',
  },
}
SCSS
$custom: #2e3d87;
$custom-light: #7172aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3d87",
  "rgb": {
    "r": 46,
    "g": 61,
    "b": 135
  },
  "hsl": {
    "h": 229.888,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39138,
    "c": 0.12453,
    "h": 270.9
  },
  "luminance": 0.05668
}

Semantic roles & 50–950 ramp

primary
#2E3D87
secondary
#B1A360
accent
#C24FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2E3D87

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

Preview Lab → · Contrast checker → · Palette generator →

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