#2F219C#2F219C

#2F219C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.186 H 277.0°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#2F219C
RGBrgb(47, 33, 156)
HSLhsl(247, 65%, 37%)
HSVhsv(247, 79%, 61%)
CMYKcmyk(69.9%, 78.8%, 0%, 38.8%)
CIE-LABlab(23.97, 44.19, -63.82)
CIE-LCHlch(23.97, 77.63, 304.70°)
OKLaboklab(36.4% 0.0225 -0.1844)
OKLCHoklch(36.4% 0.186 277)
XYZxyz(7.7149, 4.0917, 31.8292)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F219C #8E9C21
analogous
#21519C #2F219C #6C219C
triadic
#2F219C #9C2F21 #219C2F
tetradic
#2F219C #9C2151 #8E9C21 #219C6C
square
#2F219C #9C2151 #8E9C21 #219C6C
split-complementary
#2F219C #9C6C21 #519C21
monochromatic
#110C37 #201669 #2F219C #3E2CCF #6A5BDC

Accessibility & contrast

On white

11.55
#2F219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2F219C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F219C
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F219C#FFFFFF#000000##FFFFFF
##2F219C1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00349A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f219c;
/* rgb */ color: rgb(47, 33, 156);
/* oklch */ color: oklch(36.4% 0.186 277.0);
Tailwind
colors: {
  custom: {
    50: '#785fba',
    500: '#2f219c',
    950: '#000000',
  },
}
SCSS
$custom: #2f219c;
$custom-light: #785fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f219c",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 246.829,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36404,
    "c": 0.1858,
    "h": 277
  },
  "luminance": 0.04092
}

Semantic roles & 50–950 ramp

primary
#2F219C
secondary
#B5C158
accent
#E840D5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F219C

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

Preview Lab → · Contrast checker → · Palette generator →

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