#2F313A#2F313A

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

Color values

HEX#2F313A
RGBrgb(47, 49, 58)
HSLhsl(229, 10%, 21%)
HSVhsv(229, 19%, 23%)
CMYKcmyk(19%, 15.5%, 0%, 77.3%)
CIE-LABlab(20.47, 1.43, -5.98)
CIE-LCHlch(20.47, 6.15, 283.49°)
OKLaboklab(31.49% 0.0016 -0.0162)
OKLCHoklch(31.49% 0.016 275.5)
XYZxyz(3.0341, 3.1064, 4.4419)
Luminance0.0311 (WCAG relative)
Temperatureneutral
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F313A #3A382F
analogous
#2F363A #2F313A #322F3A
triadic
#2F313A #3A2F31 #313A2F
tetradic
#2F313A #3A2F36 #3A382F #2F3A32
square
#2F313A #3A2F36 #3A382F #2F3A32
split-complementary
#2F313A #3A322F #363A2F
monochromatic
#0E0E11 #141418 #2F313A #4A4E5C #666A7E

Accessibility & contrast

On white

12.95
#2F313A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F313A
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F313A#FFFFFF#000000##FFFFFF
##2F313A1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F323A
Deuteranopia (green-blind)
#2E313A
Tritanopia (blue-blind)
#2D3334
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f313a;
/* rgb */ color: rgb(47, 49, 58);
/* oklch */ color: oklch(31.5% 0.016 275.5);
Tailwind
colors: {
  custom: {
    50: '#676970',
    500: '#2f313a',
    950: '#000000',
  },
}
SCSS
$custom: #2f313a;
$custom-light: #676970;
$custom-dark: #000000;
JSON
{
  "hex": "#2f313a",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 58
  },
  "hsl": {
    "h": 229.091,
    "s": 10.476,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31486,
    "c": 0.01629,
    "h": 275.5
  },
  "luminance": 0.03106
}

Semantic roles & 50–950 ramp

primary
#2F313A
secondary
#6A675B
accent
#A874B3
background
#F6F6F6
surface
#EBEBEC
border
#C6C6C7
text
#060607
muted
#7A7A7A

Preview Lab

Preview with #2F313A

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

Preview Lab → · Contrast checker → · Palette generator →

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