#2F337F#2F337F

#2F337F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.5% C 0.126 H 275.9°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#2F337F
RGBrgb(47, 51, 127)
HSLhsl(237, 46%, 34%)
HSVhsv(237, 63%, 50%)
CMYKcmyk(63%, 59.8%, 0%, 50.2%)
CIE-LABlab(25.27, 23.22, -43.69)
CIE-LCHlch(25.27, 49.48, 297.99°)
OKLaboklab(36.5% 0.013 -0.1255)
OKLCHoklch(36.5% 0.126 275.9)
XYZxyz(6.1856, 4.5038, 20.6179)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F337F #7F7B2F
analogous
#2F5B7F #2F337F #532F7F
triadic
#2F337F #7F2F33 #337F2F
tetradic
#2F337F #7F2F5B #7F7B2F #2F7F53
square
#2F337F #7F2F5B #7F7B2F #2F7F53
split-complementary
#2F337F #7F532F #5B7F2F
monochromatic
#0E0F26 #1E2152 #2F337F #4045AC #6368C5

Accessibility & contrast

On white

11.05
#2F337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2F337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F337F
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F337F#FFFFFF#000000##FFFFFF
##2F337F1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f337f;
/* rgb */ color: rgb(47, 51, 127);
/* oklch */ color: oklch(36.5% 0.126 275.9);
Tailwind
colors: {
  custom: {
    50: '#716aa5',
    500: '#2f337f',
    950: '#000000',
  },
}
SCSS
$custom: #2f337f;
$custom-light: #716aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f337f",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 237,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36505,
    "c": 0.1262,
    "h": 275.9
  },
  "luminance": 0.04504
}

Semantic roles & 50–950 ramp

primary
#2F337F
secondary
#ACA85E
accent
#CF52D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F337F

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

Preview Lab → · Contrast checker → · Palette generator →

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