#2F228A#2F228A

#2F228A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.162 H 279.3°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#2F228A
RGBrgb(47, 34, 138)
HSLhsl(248, 60%, 34%)
HSVhsv(248, 75%, 54%)
CMYKcmyk(65.9%, 75.4%, 0%, 45.9%)
CIE-LABlab(22.24, 37.84, -55.54)
CIE-LCHlch(22.24, 67.21, 304.27°)
OKLaboklab(34.61% 0.0263 -0.1603)
OKLCHoklch(34.61% 0.162 279.3)
XYZxyz(6.3303, 3.5829, 24.3978)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F228A #7D8A22
analogous
#22498A #2F228A #63228A
triadic
#2F228A #8A2F22 #228A2F
tetradic
#2F228A #8A2249 #7D8A22 #228A63
square
#2F228A #8A2249 #7D8A22 #228A63
split-complementary
#2F228A #8A6322 #498A22
monochromatic
#0E0A28 #1E1659 #2F228A #402EBB #6252D4

Accessibility & contrast

On white

12.23
#2F228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F228A
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F228A#FFFFFF#000000##FFFFFF
##2F228A1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f228a;
/* rgb */ color: rgb(47, 34, 138);
/* oklch */ color: oklch(34.6% 0.162 279.3);
Tailwind
colors: {
  custom: {
    50: '#745fad',
    500: '#2f228a',
    950: '#000000',
  },
}
SCSS
$custom: #2f228a;
$custom-light: #745fad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f228a",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 247.5,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34613,
    "c": 0.16246,
    "h": 279.3
  },
  "luminance": 0.03583
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F228A

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

Preview Lab → · Contrast checker → · Palette generator →

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