#2F228E#2F228E

#2F228E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.168 H 278.7°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#2F228E
RGBrgb(47, 34, 142)
HSLhsl(247, 61%, 35%)
HSVhsv(247, 76%, 56%)
CMYKcmyk(66.9%, 76.1%, 0%, 44.3%)
CIE-LABlab(22.66, 39.15, -57.35)
CIE-LCHlch(22.66, 69.44, 304.32°)
OKLaboklab(35.03% 0.0254 -0.1656)
OKLCHoklch(35.03% 0.168 278.7)
XYZxyz(6.6252, 3.7008, 25.9511)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F228E #818E22
analogous
#224B8E #2F228E #65228E
triadic
#2F228E #8E2F22 #228E2F
tetradic
#2F228E #8E224B #818E22 #228E65
square
#2F228E #8E224B #818E22 #228E65
split-complementary
#2F228E #8E6522 #4B8E22
monochromatic
#0E0A2B #1F165D #2F228E #3F2EBF #6454D6

Accessibility & contrast

On white

12.07
#2F228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F228E
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F228E#FFFFFF#000000##FFFFFF
##2F228E1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f228e;
/* rgb */ color: rgb(47, 34, 142);
/* oklch */ color: oklch(35.0% 0.168 278.7);
Tailwind
colors: {
  custom: {
    50: '#755fb0',
    500: '#2f228e',
    950: '#000000',
  },
}
SCSS
$custom: #2f228e;
$custom-light: #755fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f228e",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 247.222,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35031,
    "c": 0.16753,
    "h": 278.7
  },
  "luminance": 0.03701
}

Semantic roles & 50–950 ramp

primary
#2F228E
secondary
#ADBA52
accent
#E443D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F228E

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

Preview Lab → · Contrast checker → · Palette generator →

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