#2E313B#2E313B

#2E313B is a dark, near-neutral blue. Relative luminance 0.031; OKLCH L 31.4% C 0.018 H 272.2°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2E313B
RGBrgb(46, 49, 59)
HSLhsl(226, 12%, 21%)
HSVhsv(226, 22%, 23%)
CMYKcmyk(22%, 16.9%, 0%, 76.9%)
CIE-LABlab(20.41, 1.31, -6.75)
CIE-LCHlch(20.41, 6.88, 281.00°)
OKLaboklab(31.44% 0.0007 -0.0184)
OKLCHoklch(31.44% 0.018 272.2)
XYZxyz(3.0143, 3.0932, 4.5751)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E313B #3B382E
analogous
#2E373B #2E313B #312E3B
triadic
#2E313B #3B2E31 #313B2E
tetradic
#2E313B #3B2E37 #3B382E #2E3B31
square
#2E313B #3B2E37 #3B382E #2E3B31
split-complementary
#2E313B #3B312E #373B2E
monochromatic
#0D0E11 #131419 #2E313B #494E5D #646A80

Accessibility & contrast

On white

12.97
#2E313B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2E313B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E313B
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E313B#FFFFFF#000000##FFFFFF
##2E313B1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E323B
Deuteranopia (green-blind)
#2D313B
Tritanopia (blue-blind)
#2B3334
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e313b;
/* rgb */ color: rgb(46, 49, 59);
/* oklch */ color: oklch(31.4% 0.018 272.2);
Tailwind
colors: {
  custom: {
    50: '#666970',
    500: '#2e313b',
    950: '#000000',
  },
}
SCSS
$custom: #2e313b;
$custom-light: #666970;
$custom-dark: #000000;
JSON
{
  "hex": "#2e313b",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 59
  },
  "hsl": {
    "h": 226.154,
    "s": 12.381,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31436,
    "c": 0.01837,
    "h": 272.2
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#2E313B
secondary
#6B675A
accent
#A673B5
background
#F6F6F6
surface
#EBEBEC
border
#C6C6C7
text
#060607
muted
#7A7A7A

Preview Lab

Preview with #2E313B

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

Preview Lab → · Contrast checker → · Palette generator →

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