#2F21BB#2F21BB

#2F21BB is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 39.9% C 0.222 H 273.7°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#2F21BB
RGBrgb(47, 33, 187)
HSLhsl(245, 70%, 43%)
HSVhsv(245, 82%, 73%)
CMYKcmyk(74.9%, 82.4%, 0%, 26.7%)
CIE-LABlab(27.51, 53.73, -76.62)
CIE-LCHlch(27.51, 93.58, 305.04°)
OKLaboklab(39.9% 0.0143 -0.2216)
OKLCHoklch(39.9% 0.222 273.7)
XYZxyz(10.6828, 5.2788, 47.4600)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F21BB #ADBB21
analogous
#2160BB #2F21BB #7C21BB
triadic
#2F21BB #BB2F21 #21BB2F
tetradic
#2F21BB #BB2160 #ADBB21 #21BB7C
square
#2F21BB #BB2160 #ADBB21 #21BB7C
split-complementary
#2F21BB #BB7C21 #60BB21
monochromatic
#150F53 #221887 #2F21BB #4B3DDD #7B71E6

Accessibility & contrast

On white

10.21
#2F21BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F21BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F21BB
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F21BB#FFFFFF#000000##FFFFFF
##2F21BB1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048BF
Deuteranopia (green-blind)
#003AB8
Tritanopia (blue-blind)
#005270
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f21bb;
/* rgb */ color: rgb(47, 33, 187);
/* oklch */ color: oklch(39.9% 0.222 273.7);
Tailwind
colors: {
  custom: {
    50: '#8062d1',
    500: '#2f21bb',
    950: '#000000',
  },
}
SCSS
$custom: #2f21bb;
$custom-light: #8062d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f21bb",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 187
  },
  "hsl": {
    "h": 245.455,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.39899,
    "c": 0.22205,
    "h": 273.7
  },
  "luminance": 0.0528
}

Semantic roles & 50–950 ramp

primary
#2F21BB
secondary
#C4CC6B
accent
#ED3BDD
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0514
muted
#7D7A83

Preview Lab

Preview with #2F21BB

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

Preview Lab → · Contrast checker → · Palette generator →

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