#2F219F#2F219F

#2F219F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.189 H 276.6°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#2F219F
RGBrgb(47, 33, 159)
HSLhsl(247, 66%, 38%)
HSVhsv(247, 79%, 62%)
CMYKcmyk(70.4%, 79.2%, 0%, 37.6%)
CIE-LABlab(24.30, 45.14, -65.10)
CIE-LCHlch(24.30, 79.22, 304.74°)
OKLaboklab(36.73% 0.0217 -0.1882)
OKLCHoklch(36.73% 0.189 276.6)
XYZxyz(7.9721, 4.1945, 33.1837)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F219F #919F21
analogous
#21529F #2F219F #6E219F
triadic
#2F219F #9F2F21 #219F2F
tetradic
#2F219F #9F2152 #919F21 #219F6E
square
#2F219F #9F2152 #919F21 #219F6E
split-complementary
#2F219F #9F6E21 #529F21
monochromatic
#110C3A #20166C #2F219F #3E2CD2 #6B5DDD

Accessibility & contrast

On white

11.42
#2F219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2F219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F219F
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F219F#FFFFFF#000000##FFFFFF
##2F219F1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f219f;
/* rgb */ color: rgb(47, 33, 159);
/* oklch */ color: oklch(36.7% 0.189 276.6);
Tailwind
colors: {
  custom: {
    50: '#7960bd',
    500: '#2f219f',
    950: '#000000',
  },
}
SCSS
$custom: #2f219f;
$custom-light: #7960bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f219f",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 246.667,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36734,
    "c": 0.18941,
    "h": 276.6
  },
  "luminance": 0.04195
}

Semantic roles & 50–950 ramp

primary
#2F219F
secondary
#B6C25A
accent
#E93FD6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F219F

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

Preview Lab → · Contrast checker → · Palette generator →

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