#2F219A#2F219A

#2F219A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.183 H 277.2°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#2F219A
RGBrgb(47, 33, 154)
HSLhsl(247, 65%, 37%)
HSVhsv(247, 79%, 60%)
CMYKcmyk(69.5%, 78.6%, 0%, 39.6%)
CIE-LABlab(23.75, 43.56, -62.96)
CIE-LCHlch(23.75, 76.56, 304.68°)
OKLaboklab(36.19% 0.023 -0.1819)
OKLCHoklch(36.19% 0.183 277.2)
XYZxyz(7.5470, 4.0245, 30.9447)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F219A #8C9A21
analogous
#21509A #2F219A #6C219A
triadic
#2F219A #9A2F21 #219A2F
tetradic
#2F219A #9A2150 #8C9A21 #219A6C
square
#2F219A #9A2150 #8C9A21 #219A6C
split-complementary
#2F219A #9A6C21 #509A21
monochromatic
#100B35 #201668 #2F219A #3E2CCC #695ADC

Accessibility & contrast

On white

11.63
#2F219A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F219A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F219A
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F219A#FFFFFF#000000##FFFFFF
##2F219A1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f219a;
/* rgb */ color: rgb(47, 33, 154);
/* oklch */ color: oklch(36.2% 0.183 277.2);
Tailwind
colors: {
  custom: {
    50: '#785fb9',
    500: '#2f219a',
    950: '#000000',
  },
}
SCSS
$custom: #2f219a;
$custom-light: #785fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f219a",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 154
  },
  "hsl": {
    "h": 246.942,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36185,
    "c": 0.18337,
    "h": 277.2
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#2F219A
secondary
#B4C057
accent
#E840D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F219A

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

Preview Lab → · Contrast checker → · Palette generator →

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