#2F334A#2F334A

#2F334A is a dark, muted blue. Relative luminance 0.035; OKLCH L 32.8% C 0.041 H 276.3°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2F334A
RGBrgb(47, 51, 74)
HSLhsl(231, 22%, 24%)
HSVhsv(231, 36%, 29%)
CMYKcmyk(36.5%, 31.1%, 0%, 71%)
CIE-LABlab(21.82, 4.76, -14.75)
CIE-LCHlch(21.82, 15.49, 287.90°)
OKLaboklab(32.78% 0.0045 -0.0409)
OKLCHoklch(32.78% 0.041 276.3)
XYZxyz(3.5918, 3.4663, 6.9570)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F334A #4A462F
analogous
#2F404A #2F334A #382F4A
triadic
#2F334A #4A2F33 #334A2F
tetradic
#2F334A #4A2F40 #4A462F #2F4A38
square
#2F334A #4A2F40 #4A462F #2F4A38
split-complementary
#2F334A #4A382F #404A2F
monochromatic
#0C0D13 #171925 #2F334A #474D6F #5F6795

Accessibility & contrast

On white

12.40
#2F334A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2F334A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F334A
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F334A#FFFFFF#000000##FFFFFF
##2F334A1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C354B
Deuteranopia (green-blind)
#2A3349
Tritanopia (blue-blind)
#28373B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f334a;
/* rgb */ color: rgb(47, 51, 74);
/* oklch */ color: oklch(32.8% 0.041 276.3);
Tailwind
colors: {
  custom: {
    50: '#686a7c',
    500: '#2f334a',
    950: '#000000',
  },
}
SCSS
$custom: #2f334a;
$custom-light: #686a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f334a",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 74
  },
  "hsl": {
    "h": 231.111,
    "s": 22.314,
    "l": 23.725
  },
  "oklch": {
    "l": 0.32779,
    "c": 0.04118,
    "h": 276.3
  },
  "luminance": 0.03466
}

Semantic roles & 50–950 ramp

primary
#2F334A
secondary
#7B765A
accent
#B269BF
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#060609
muted
#7A7A7B

Preview Lab

Preview with #2F334A

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

Preview Lab → · Contrast checker → · Palette generator →

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