#2F228D#2F228D

#2F228D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.166 H 278.9°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2F228D
RGBrgb(47, 34, 141)
HSLhsl(247, 61%, 34%)
HSVhsv(247, 76%, 55%)
CMYKcmyk(66.7%, 75.9%, 0%, 44.7%)
CIE-LABlab(22.55, 38.82, -56.90)
CIE-LCHlch(22.55, 68.89, 304.31°)
OKLaboklab(34.93% 0.0256 -0.1643)
OKLCHoklch(34.93% 0.166 278.9)
XYZxyz(6.5505, 3.6709, 25.5575)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F228D #808D22
analogous
#224B8D #2F228D #65228D
triadic
#2F228D #8D2F22 #228D2F
tetradic
#2F228D #8D224B #808D22 #228D65
square
#2F228D #8D224B #808D22 #228D65
split-complementary
#2F228D #8D6522 #4B8D22
monochromatic
#0E0A2A #1F165C #2F228D #3F2EBE #6354D6

Accessibility & contrast

On white

12.11
#2F228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2F228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F228D
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F228D#FFFFFF#000000##FFFFFF
##2F228D1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f228d;
/* rgb */ color: rgb(47, 34, 141);
/* oklch */ color: oklch(34.9% 0.166 278.9);
Tailwind
colors: {
  custom: {
    50: '#755faf',
    500: '#2f228d',
    950: '#000000',
  },
}
SCSS
$custom: #2f228d;
$custom-light: #755faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f228d",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 247.29,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34926,
    "c": 0.16628,
    "h": 278.9
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#2F228D
secondary
#ADB951
accent
#E444D1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2F228D

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

Preview Lab → · Contrast checker → · Palette generator →

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