#2E3440#2E3440

#2E3440 is a dark, muted blue. Relative luminance 0.034; OKLCH L 32.4% C 0.023 H 264.2°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#2E3440
RGBrgb(46, 52, 64)
HSLhsl(220, 16%, 22%)
HSVhsv(220, 28%, 25%)
CMYKcmyk(28.1%, 18.8%, 0%, 74.9%)
CIE-LABlab(21.60, 0.69, -8.35)
CIE-LCHlch(21.60, 8.37, 274.75°)
OKLaboklab(32.44% -0.0023 -0.0228)
OKLCHoklch(32.44% 0.023 264.2)
XYZxyz(3.2799, 3.4069, 5.3343)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3440 #403A2E
analogous
#2E3D40 #2E3440 #312E40
triadic
#2E3440 #402E34 #34402E
tetradic
#2E3440 #402E3D #403A2E #2E4031
square
#2E3440 #402E3D #403A2E #2E4031
split-complementary
#2E3440 #40312E #3D402E
monochromatic
#0D0E12 #14171C #2E3440 #485164 #616E87

Accessibility & contrast

On white

12.49
#2E3440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2E3440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3440
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3440#FFFFFF#000000##FFFFFF
##2E34401.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303541
Deuteranopia (green-blind)
#2F3340
Tritanopia (blue-blind)
#293638
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e3440;
/* rgb */ color: rgb(46, 52, 64);
/* oklch */ color: oklch(32.4% 0.023 264.2);
Tailwind
colors: {
  custom: {
    50: '#676b74',
    500: '#2e3440',
    950: '#000000',
  },
}
SCSS
$custom: #2e3440;
$custom-light: #676b74;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3440",
  "rgb": {
    "r": 46,
    "g": 52,
    "b": 64
  },
  "hsl": {
    "h": 220,
    "s": 16.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32437,
    "c": 0.02295,
    "h": 264.2
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#2E3440
secondary
#706959
accent
#A06FB9
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060608
muted
#7A7A7B

Preview Lab

Preview with #2E3440

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

Preview Lab → · Contrast checker → · Palette generator →

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