#2F314C#2F314C

#2F314C is a dark, muted blue. Relative luminance 0.033; OKLCH L 32.4% C 0.048 H 280.1°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#2F314C
RGBrgb(47, 49, 76)
HSLhsl(236, 24%, 24%)
HSVhsv(236, 38%, 30%)
CMYKcmyk(38.2%, 35.5%, 0%, 70.2%)
CIE-LABlab(21.29, 6.78, -16.91)
CIE-LCHlch(21.29, 18.22, 291.84°)
OKLaboklab(32.4% 0.0084 -0.0471)
OKLCHoklch(32.4% 0.048 280.1)
XYZxyz(3.5747, 3.3226, 7.2891)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F314C #4C4A2F
analogous
#2F404C #2F314C #3C2F4C
triadic
#2F314C #4C2F31 #314C2F
tetradic
#2F314C #4C2F40 #4C4A2F #2F4C3C
square
#2F314C #4C2F40 #4C4A2F #2F4C3C
split-complementary
#2F314C #4C3C2F #404C2F
monochromatic
#0C0C13 #181926 #2F314C #464972 #5E6298

Accessibility & contrast

On white

12.62
#2F314C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2F314C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F314C
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F314C#FFFFFF#000000##FFFFFF
##2F314C1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29344D
Deuteranopia (green-blind)
#27324B
Tritanopia (blue-blind)
#27363B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f314c;
/* rgb */ color: rgb(47, 49, 76);
/* oklch */ color: oklch(32.4% 0.048 280.1);
Tailwind
colors: {
  custom: {
    50: '#68697e',
    500: '#2f314c',
    950: '#000000',
  },
}
SCSS
$custom: #2f314c;
$custom-light: #68697e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f314c",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 76
  },
  "hsl": {
    "h": 235.862,
    "s": 23.577,
    "l": 24.118
  },
  "oklch": {
    "l": 0.32402,
    "c": 0.04789,
    "h": 280.1
  },
  "luminance": 0.03323
}

Semantic roles & 50–950 ramp

primary
#2F314C
secondary
#7D7B5A
accent
#BA68C0
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #2F314C

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

Preview Lab → · Contrast checker → · Palette generator →

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