#2F313B#2F313B

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

Color values

HEX#2F313B
RGBrgb(47, 49, 59)
HSLhsl(230, 11%, 21%)
HSVhsv(230, 20%, 23%)
CMYKcmyk(20.3%, 16.9%, 0%, 76.9%)
CIE-LABlab(20.51, 1.71, -6.60)
CIE-LCHlch(20.51, 6.82, 284.50°)
OKLaboklab(31.53% 0.002 -0.0179)
OKLCHoklch(31.53% 0.018 276.4)
XYZxyz(3.0598, 3.1167, 4.5772)
Luminance0.0312 (WCAG relative)
Temperatureneutral
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F313B #3B392F
analogous
#2F373B #2F313B #332F3B
triadic
#2F313B #3B2F31 #313B2F
tetradic
#2F313B #3B2F37 #3B392F #2F3B33
square
#2F313B #3B2F37 #3B392F #2F3B33
split-complementary
#2F313B #3B332F #373B2F
monochromatic
#0E0E11 #141519 #2F313B #4A4D5D #656A7F

Accessibility & contrast

On white

12.94
#2F313B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F313B
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F313B#FFFFFF#000000##FFFFFF
##2F313B1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f313b;
/* rgb */ color: rgb(47, 49, 59);
/* oklch */ color: oklch(31.5% 0.018 276.4);
Tailwind
colors: {
  custom: {
    50: '#676970',
    500: '#2f313b',
    950: '#000000',
  },
}
SCSS
$custom: #2f313b;
$custom-light: #676970;
$custom-dark: #000000;
JSON
{
  "hex": "#2f313b",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 59
  },
  "hsl": {
    "h": 230,
    "s": 11.321,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31531,
    "c": 0.01804,
    "h": 276.4
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#2F313B
secondary
#6B685B
accent
#A974B4
background
#F6F6F6
surface
#EBEBEC
border
#C6C6C7
text
#060607
muted
#7A7A7A

Preview Lab

Preview with #2F313B

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

Preview Lab → · Contrast checker → · Palette generator →

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