#2F337A#2F337A

#2F337A is a dark, moderate blue. Relative luminance 0.044; OKLCH L 36.1% C 0.119 H 276.2°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#2F337A
RGBrgb(47, 51, 122)
HSLhsl(237, 44%, 33%)
HSVhsv(237, 61%, 48%)
CMYKcmyk(61.5%, 58.2%, 0%, 52.2%)
CIE-LABlab(24.88, 21.41, -41.17)
CIE-LCHlch(24.88, 46.40, 297.47°)
OKLaboklab(36.09% 0.0129 -0.1181)
OKLCHoklch(36.09% 0.119 276.2)
XYZxyz(5.8678, 4.3767, 18.9442)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F337A #7A762F
analogous
#2F587A #2F337A #502F7A
triadic
#2F337A #7A2F33 #337A2F
tetradic
#2F337A #7A2F58 #7A762F #2F7A50
square
#2F337A #7A2F58 #7A762F #2F7A50
split-complementary
#2F337A #7A502F #587A2F
monochromatic
#0D0E22 #1E214E #2F337A #4045A6 #6166C2

Accessibility & contrast

On white

11.20
#2F337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F337A
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F337A#FFFFFF#000000##FFFFFF
##2F337A1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7C
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f337a;
/* rgb */ color: rgb(47, 51, 122);
/* oklch */ color: oklch(36.1% 0.119 276.2);
Tailwind
colors: {
  custom: {
    50: '#706aa1',
    500: '#2f337a',
    950: '#000000',
  },
}
SCSS
$custom: #2f337a;
$custom-light: #706aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f337a",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 236.8,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36089,
    "c": 0.11882,
    "h": 276.2
  },
  "luminance": 0.04377
}

Semantic roles & 50–950 ramp

primary
#2F337A
secondary
#A9A55C
accent
#CD54D4
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F337A

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

Preview Lab → · Contrast checker → · Palette generator →

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