#2F337B#2F337B

#2F337B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.120 H 276.2°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#2F337B
RGBrgb(47, 51, 123)
HSLhsl(237, 45%, 33%)
HSVhsv(237, 62%, 48%)
CMYKcmyk(61.8%, 58.5%, 0%, 51.8%)
CIE-LABlab(24.96, 21.77, -41.68)
CIE-LCHlch(24.96, 47.02, 297.58°)
OKLaboklab(36.17% 0.0129 -0.1196)
OKLCHoklch(36.17% 0.12 276.2)
XYZxyz(5.9301, 4.4016, 19.2721)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F337B #7B772F
analogous
#2F597B #2F337B #512F7B
triadic
#2F337B #7B2F33 #337B2F
tetradic
#2F337B #7B2F59 #7B772F #2F7B51
square
#2F337B #7B2F59 #7B772F #2F7B51
split-complementary
#2F337B #7B512F #597B2F
monochromatic
#0D0E22 #1E214F #2F337B #4045A7 #6267C3

Accessibility & contrast

On white

11.17
#2F337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F337B
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F337B#FFFFFF#000000##FFFFFF
##2F337B1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7D
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f337b;
/* rgb */ color: rgb(47, 51, 123);
/* oklch */ color: oklch(36.2% 0.120 276.2);
Tailwind
colors: {
  custom: {
    50: '#706aa2',
    500: '#2f337b',
    950: '#000000',
  },
}
SCSS
$custom: #2f337b;
$custom-light: #706aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f337b",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 236.842,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36171,
    "c": 0.12031,
    "h": 276.2
  },
  "luminance": 0.04402
}

Semantic roles & 50–950 ramp

primary
#2F337B
secondary
#AAA65C
accent
#CE53D4
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F337B

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

Preview Lab → · Contrast checker → · Palette generator →

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