#2F337D#2F337D

#2F337D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.3% C 0.123 H 276.0°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#2F337D
RGBrgb(47, 51, 125)
HSLhsl(237, 45%, 34%)
HSVhsv(237, 62%, 49%)
CMYKcmyk(62.4%, 59.2%, 0%, 51%)
CIE-LABlab(25.11, 22.50, -42.69)
CIE-LCHlch(25.11, 48.25, 297.79°)
OKLaboklab(36.34% 0.013 -0.1226)
OKLCHoklch(36.34% 0.123 276)
XYZxyz(6.0566, 4.4522, 19.9383)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F337D #7D792F
analogous
#2F5A7D #2F337D #522F7D
triadic
#2F337D #7D2F33 #337D2F
tetradic
#2F337D #7D2F5A #7D792F #2F7D52
square
#2F337D #7D2F5A #7D792F #2F7D52
split-complementary
#2F337D #7D522F #5A7D2F
monochromatic
#0E0F24 #1E2151 #2F337D #4045A9 #6267C4

Accessibility & contrast

On white

11.11
#2F337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F337D
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F337D#FFFFFF#000000##FFFFFF
##2F337D1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f337d;
/* rgb */ color: rgb(47, 51, 125);
/* oklch */ color: oklch(36.3% 0.123 276.0);
Tailwind
colors: {
  custom: {
    50: '#706aa3',
    500: '#2f337d',
    950: '#000000',
  },
}
SCSS
$custom: #2f337d;
$custom-light: #706aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f337d",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 236.923,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36337,
    "c": 0.12327,
    "h": 276
  },
  "luminance": 0.04453
}

Semantic roles & 50–950 ramp

primary
#2F337D
secondary
#ABA75D
accent
#CE53D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F337D

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

Preview Lab → · Contrast checker → · Palette generator →

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