#2F218B#2F218B

#2F218B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.165 H 279.3°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#2F218B
RGBrgb(47, 33, 139)
HSLhsl(248, 62%, 34%)
HSVhsv(248, 76%, 55%)
CMYKcmyk(66.2%, 76.3%, 0%, 45.5%)
CIE-LABlab(22.14, 38.73, -56.33)
CIE-LCHlch(22.14, 68.36, 304.51°)
OKLaboklab(34.58% 0.0267 -0.1626)
OKLCHoklch(34.58% 0.165 279.3)
XYZxyz(6.3749, 3.5556, 24.7715)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F218B #7D8B21
analogous
#21488B #2F218B #64218B
triadic
#2F218B #8B2F21 #218B2F
tetradic
#2F218B #8B2148 #7D8B21 #218B64
square
#2F218B #8B2148 #7D8B21 #218B64
split-complementary
#2F218B #8B6421 #488B21
monochromatic
#0E0A28 #1E155A #2F218B #402DBC #6251D6

Accessibility & contrast

On white

12.27
#2F218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F218B
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F218B#FFFFFF#000000##FFFFFF
##2F218B1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f218b;
/* rgb */ color: rgb(47, 33, 139);
/* oklch */ color: oklch(34.6% 0.165 279.3);
Tailwind
colors: {
  custom: {
    50: '#755eae',
    500: '#2f218b',
    950: '#000000',
  },
}
SCSS
$custom: #2f218b;
$custom-light: #755eae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f218b",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 247.925,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34575,
    "c": 0.16478,
    "h": 279.3
  },
  "luminance": 0.03556
}

Semantic roles & 50–950 ramp

primary
#2F218B
secondary
#ABB94F
accent
#E543CF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F218B

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

Preview Lab → · Contrast checker → · Palette generator →

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