#2F3372#2F3372

#2F3372 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.4% C 0.107 H 276.7°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#2F3372
RGBrgb(47, 51, 114)
HSLhsl(236, 42%, 32%)
HSVhsv(236, 59%, 45%)
CMYKcmyk(58.8%, 55.3%, 0%, 55.3%)
CIE-LABlab(24.28, 18.51, -37.05)
CIE-LCHlch(24.28, 41.42, 296.54°)
OKLaboklab(35.45% 0.0125 -0.106)
OKLCHoklch(35.45% 0.107 276.7)
XYZxyz(5.3924, 4.1865, 16.4403)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3372 #726E2F
analogous
#2F5572 #2F3372 #4D2F72
triadic
#2F3372 #722F33 #33722F
tetradic
#2F3372 #722F55 #726E2F #2F724D
square
#2F3372 #722F55 #726E2F #2F724D
split-complementary
#2F3372 #724D2F #55722F
monochromatic
#0B0C1B #1D2047 #2F3372 #41469D #5F64BD

Accessibility & contrast

On white

11.43
#2F3372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2F3372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3372
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3372#FFFFFF#000000##FFFFFF
##2F33721.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3D74
Deuteranopia (green-blind)
#023771
Tritanopia (blue-blind)
#0A414D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f3372;
/* rgb */ color: rgb(47, 51, 114);
/* oklch */ color: oklch(35.4% 0.107 276.7);
Tailwind
colors: {
  custom: {
    50: '#6e6a9b',
    500: '#2f3372',
    950: '#000000',
  },
}
SCSS
$custom: #2f3372;
$custom-light: #6e6a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3372",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 114
  },
  "hsl": {
    "h": 236.418,
    "s": 41.615,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35449,
    "c": 0.10674,
    "h": 276.7
  },
  "luminance": 0.04187
}

Semantic roles & 50–950 ramp

primary
#2F3372
secondary
#A39F5A
accent
#CA56D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F3372

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

Preview Lab → · Contrast checker → · Palette generator →

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