#2E3887#2E3887

#2E3887 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.131 H 273.0°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#2E3887
RGBrgb(46, 56, 135)
HSLhsl(233, 49%, 35%)
HSVhsv(233, 66%, 53%)
CMYKcmyk(65.9%, 58.5%, 0%, 47.1%)
CIE-LABlab(27.18, 22.59, -45.60)
CIE-LCHlch(27.18, 50.89, 296.35°)
OKLaboklab(38.11% 0.007 -0.1311)
OKLCHoklch(38.11% 0.131 273)
XYZxyz(6.9126, 5.1579, 23.5483)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3887 #877D2E
analogous
#2E6587 #2E3887 #502E87
triadic
#2E3887 #872E38 #38872E
tetradic
#2E3887 #872E65 #877D2E #2E8750
square
#2E3887 #872E65 #877D2E #2E8750
split-complementary
#2E3887 #87502E #65872E
monochromatic
#0F122C #1E2559 #2E3887 #3E4BB5 #6570CA

Accessibility & contrast

On white

10.34
#2E3887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2E3887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3887
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3887#FFFFFF#000000##FFFFFF
##2E38871.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#004B5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2e3887;
/* rgb */ color: rgb(46, 56, 135);
/* oklch */ color: oklch(38.1% 0.131 273.0);
Tailwind
colors: {
  custom: {
    50: '#716eab',
    500: '#2e3887',
    950: '#000000',
  },
}
SCSS
$custom: #2e3887;
$custom-light: #716eab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3887",
  "rgb": {
    "r": 46,
    "g": 56,
    "b": 135
  },
  "hsl": {
    "h": 233.258,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38106,
    "c": 0.13131,
    "h": 273
  },
  "luminance": 0.05158
}

Semantic roles & 50–950 ramp

primary
#2E3887
secondary
#B1A860
accent
#C94FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2E3887

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

Preview Lab → · Contrast checker → · Palette generator →

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