#2F228B#2F228B

#2F228B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.164 H 279.2°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#2F228B
RGBrgb(47, 34, 139)
HSLhsl(247, 61%, 34%)
HSVhsv(247, 76%, 55%)
CMYKcmyk(66.2%, 75.5%, 0%, 45.5%)
CIE-LABlab(22.34, 38.17, -56.00)
CIE-LCHlch(22.34, 67.77, 304.28°)
OKLaboklab(34.72% 0.0261 -0.1616)
OKLCHoklch(34.72% 0.164 279.2)
XYZxyz(6.4030, 3.6120, 24.7808)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F228B #7E8B22
analogous
#224A8B #2F228B #64228B
triadic
#2F228B #8B2F22 #228B2F
tetradic
#2F228B #8B224A #7E8B22 #228B64
square
#2F228B #8B224A #7E8B22 #228B64
split-complementary
#2F228B #8B6422 #4A8B22
monochromatic
#0E0A29 #1E165A #2F228B #402EBC #6353D5

Accessibility & contrast

On white

12.19
#2F228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F228B
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F228B#FFFFFF#000000##FFFFFF
##2F228B1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f228b;
/* rgb */ color: rgb(47, 34, 139);
/* oklch */ color: oklch(34.7% 0.164 279.2);
Tailwind
colors: {
  custom: {
    50: '#755fae',
    500: '#2f228b',
    950: '#000000',
  },
}
SCSS
$custom: #2f228b;
$custom-light: #755fae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f228b",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 247.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34717,
    "c": 0.16374,
    "h": 279.2
  },
  "luminance": 0.03612
}

Semantic roles & 50–950 ramp

primary
#2F228B
secondary
#ACB850
accent
#E444D0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F228B

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

Preview Lab → · Contrast checker → · Palette generator →

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