#2F337E#2F337E

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

Color values

HEX#2F337E
RGBrgb(47, 51, 126)
HSLhsl(237, 46%, 34%)
HSVhsv(237, 63%, 49%)
CMYKcmyk(62.7%, 59.5%, 0%, 50.6%)
CIE-LABlab(25.19, 22.86, -43.19)
CIE-LCHlch(25.19, 48.87, 297.89°)
OKLaboklab(36.42% 0.013 -0.1241)
OKLCHoklch(36.42% 0.125 276)
XYZxyz(6.1208, 4.4779, 20.2764)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F337E #7E7A2F
analogous
#2F5B7E #2F337E #532F7E
triadic
#2F337E #7E2F33 #337E2F
tetradic
#2F337E #7E2F5B #7E7A2F #2F7E53
square
#2F337E #7E2F5B #7E7A2F #2F7E53
split-complementary
#2F337E #7E532F #5B7E2F
monochromatic
#0E0F25 #1E2151 #2F337E #4045AB #6368C5

Accessibility & contrast

On white

11.08
#2F337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F337E
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F337E#FFFFFF#000000##FFFFFF
##2F337E1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f337e;
/* rgb */ color: rgb(47, 51, 126);
/* oklch */ color: oklch(36.4% 0.125 276.0);
Tailwind
colors: {
  custom: {
    50: '#706aa4',
    500: '#2f337e',
    950: '#000000',
  },
}
SCSS
$custom: #2f337e;
$custom-light: #706aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f337e",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 236.962,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36421,
    "c": 0.12474,
    "h": 276
  },
  "luminance": 0.04478
}

Semantic roles & 50–950 ramp

primary
#2F337E
secondary
#ACA85D
accent
#CF52D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F337E

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

Preview Lab → · Contrast checker → · Palette generator →

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