#2E3166#2E3166

#2E3166 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.0% C 0.091 H 277.9°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2E3166
RGBrgb(46, 49, 102)
HSLhsl(237, 38%, 29%)
HSVhsv(237, 55%, 40%)
CMYKcmyk(54.9%, 52%, 0%, 60%)
CIE-LABlab(22.78, 15.35, -31.73)
CIE-LCHlch(22.78, 35.25, 295.82°)
OKLaboklab(34.03% 0.0126 -0.0904)
OKLCHoklch(34.03% 0.091 277.9)
XYZxyz(4.6225, 3.7365, 13.0454)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3166 #66632E
analogous
#2E4D66 #2E3166 #472E66
triadic
#2E3166 #662E31 #31662E
tetradic
#2E3166 #662E4D #66632E #2E6647
square
#2E3166 #662E4D #66632E #2E6647
split-complementary
#2E3166 #66472E #4D662E
monochromatic
#0A0A15 #1B1D3C #2E3166 #414590 #5A5FB5

Accessibility & contrast

On white

12.02
#2E3166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2E3166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3166
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3166#FFFFFF#000000##FFFFFF
##2E31661.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183968
Deuteranopia (green-blind)
#123465
Tritanopia (blue-blind)
#163D46
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e3166;
/* rgb */ color: rgb(46, 49, 102);
/* oklch */ color: oklch(34.0% 0.091 277.9);
Tailwind
colors: {
  custom: {
    50: '#6b6992',
    500: '#2e3166',
    950: '#000000',
  },
}
SCSS
$custom: #2e3166;
$custom-light: #6b6992;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3166",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 236.786,
    "s": 37.838,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34028,
    "c": 0.09128,
    "h": 277.9
  },
  "luminance": 0.03737
}

Semantic roles & 50–950 ramp

primary
#2E3166
secondary
#989458
accent
#C85ACE
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2E3166

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

Preview Lab → · Contrast checker → · Palette generator →

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