#2F218C#2F218C

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

Color values

HEX#2F218C
RGBrgb(47, 33, 140)
HSLhsl(248, 62%, 34%)
HSVhsv(248, 76%, 55%)
CMYKcmyk(66.4%, 76.4%, 0%, 45.1%)
CIE-LABlab(22.25, 39.06, -56.78)
CIE-LCHlch(22.25, 68.92, 304.52°)
OKLaboklab(34.68% 0.0265 -0.1639)
OKLCHoklch(34.68% 0.166 279.2)
XYZxyz(6.4483, 3.5850, 25.1580)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F218C #7E8C21
analogous
#21498C #2F218C #65218C
triadic
#2F218C #8C2F21 #218C2F
tetradic
#2F218C #8C2149 #7E8C21 #218C65
square
#2F218C #8C2149 #7E8C21 #218C65
split-complementary
#2F218C #8C6521 #498C21
monochromatic
#0E0A29 #1E155A #2F218C #402DBE #6351D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F218C#FFFFFF#000000##FFFFFF
##2F218C1.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)
#00398F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f218c;
/* rgb */ color: rgb(47, 33, 140);
/* oklch */ color: oklch(34.7% 0.166 279.2);
Tailwind
colors: {
  custom: {
    50: '#755faf',
    500: '#2f218c',
    950: '#000000',
  },
}
SCSS
$custom: #2f218c;
$custom-light: #755faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f218c",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 247.85,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34681,
    "c": 0.16605,
    "h": 279.2
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#2F218C
secondary
#ACB94F
accent
#E543D0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F218C

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

Preview Lab → · Contrast checker → · Palette generator →

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