#2F219B#2F219B

#2F219B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.185 H 277.1°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#2F219B
RGBrgb(47, 33, 155)
HSLhsl(247, 65%, 37%)
HSVhsv(247, 79%, 61%)
CMYKcmyk(69.7%, 78.7%, 0%, 39.2%)
CIE-LABlab(23.86, 43.88, -63.39)
CIE-LCHlch(23.86, 77.09, 304.69°)
OKLaboklab(36.29% 0.0228 -0.1832)
OKLCHoklch(36.29% 0.185 277.1)
XYZxyz(7.6306, 4.0579, 31.3851)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F219B #8D9B21
analogous
#21509B #2F219B #6C219B
triadic
#2F219B #9B2F21 #219B2F
tetradic
#2F219B #9B2150 #8D9B21 #219B6C
square
#2F219B #9B2150 #8D9B21 #219B6C
split-complementary
#2F219B #9B6C21 #509B21
monochromatic
#100C36 #201669 #2F219B #3E2CCD #695ADC

Accessibility & contrast

On white

11.59
#2F219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F219B
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F219B#FFFFFF#000000##FFFFFF
##2F219B1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f219b;
/* rgb */ color: rgb(47, 33, 155);
/* oklch */ color: oklch(36.3% 0.185 277.1);
Tailwind
colors: {
  custom: {
    50: '#785fba',
    500: '#2f219b',
    950: '#000000',
  },
}
SCSS
$custom: #2f219b;
$custom-light: #785fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f219b",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 246.885,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36294,
    "c": 0.18459,
    "h": 277.1
  },
  "luminance": 0.04059
}

Semantic roles & 50–950 ramp

primary
#2F219B
secondary
#B4C058
accent
#E840D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F219B

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

Preview Lab → · Contrast checker → · Palette generator →

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