#2E3386#2E3386

#2E3386 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.0% C 0.137 H 274.9°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#2E3386
RGBrgb(46, 51, 134)
HSLhsl(237, 49%, 35%)
HSVhsv(237, 66%, 53%)
CMYKcmyk(65.7%, 61.9%, 0%, 47.5%)
CIE-LABlab(25.77, 25.59, -47.27)
CIE-LCHlch(25.77, 53.75, 298.43°)
OKLaboklab(37.04% 0.0117 -0.1361)
OKLCHoklch(37.04% 0.137 274.9)
XYZxyz(6.6122, 4.6692, 23.1024)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3386 #86812E
analogous
#2E5F86 #2E3386 #552E86
triadic
#2E3386 #862E33 #33862E
tetradic
#2E3386 #862E5F #86812E #2E8655
square
#2E3386 #862E5F #86812E #2E8655
split-complementary
#2E3386 #86552E #5F862E
monochromatic
#0F102B #1E2258 #2E3386 #3E44B4 #646ACA

Accessibility & contrast

On white

10.86
#2E3386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2E3386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3386
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3386#FFFFFF#000000##FFFFFF
##2E33861.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e3386;
/* rgb */ color: rgb(46, 51, 134);
/* oklch */ color: oklch(37.0% 0.137 274.9);
Tailwind
colors: {
  custom: {
    50: '#716aaa',
    500: '#2e3386',
    950: '#000000',
  },
}
SCSS
$custom: #2e3386;
$custom-light: #716aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3386",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 134
  },
  "hsl": {
    "h": 236.591,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37035,
    "c": 0.13658,
    "h": 274.9
  },
  "luminance": 0.0467
}

Semantic roles & 50–950 ramp

primary
#2E3386
secondary
#B1AC5F
accent
#D14FD8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2E3386

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

Preview Lab → · Contrast checker → · Palette generator →

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