#2F336B#2F336B

#2F336B is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.9% C 0.096 H 277.1°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#2F336B
RGBrgb(47, 51, 107)
HSLhsl(236, 39%, 30%)
HSVhsv(236, 56%, 42%)
CMYKcmyk(56.1%, 52.3%, 0%, 58%)
CIE-LABlab(23.78, 15.99, -33.36)
CIE-LCHlch(23.78, 37.00, 295.61°)
OKLaboklab(34.92% 0.0119 -0.0951)
OKLCHoklch(34.92% 0.096 277.1)
XYZxyz(5.0091, 4.0332, 14.4216)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F336B #6B672F
analogous
#2F516B #2F336B #492F6B
triadic
#2F336B #6B2F33 #336B2F
tetradic
#2F336B #6B2F51 #6B672F #2F6B49
square
#2F336B #6B2F51 #6B672F #2F6B49
split-complementary
#2F336B #6B492F #516B2F
monochromatic
#0A0A16 #1C1F40 #2F336B #424796 #5D63B8

Accessibility & contrast

On white

11.62
#2F336B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F336B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F336B
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F336B#FFFFFF#000000##FFFFFF
##2F336B1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183B6D
Deuteranopia (green-blind)
#11366A
Tritanopia (blue-blind)
#143F4A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f336b;
/* rgb */ color: rgb(47, 51, 107);
/* oklch */ color: oklch(34.9% 0.096 277.1);
Tailwind
colors: {
  custom: {
    50: '#6d6a96',
    500: '#2f336b',
    950: '#000000',
  },
}
SCSS
$custom: #2f336b;
$custom-light: #6d6a96;
$custom-dark: #000000;
JSON
{
  "hex": "#2f336b",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 107
  },
  "hsl": {
    "h": 236,
    "s": 38.961,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34915,
    "c": 0.09589,
    "h": 277.1
  },
  "luminance": 0.04034
}

Semantic roles & 50–950 ramp

primary
#2F336B
secondary
#9C9859
accent
#C759CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2F336B

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

Preview Lab → · Contrast checker → · Palette generator →

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