#2F21B2#2F21B2

#2F21B2 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.9% C 0.212 H 274.5°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#2F21B2
RGBrgb(47, 33, 178)
HSLhsl(246, 69%, 41%)
HSVhsv(246, 81%, 70%)
CMYKcmyk(73.6%, 81.5%, 0%, 30.2%)
CIE-LABlab(26.46, 51.02, -73.00)
CIE-LCHlch(26.46, 89.06, 304.95°)
OKLaboklab(38.87% 0.0167 -0.2111)
OKLCHoklch(38.87% 0.212 274.5)
XYZxyz(9.7494, 4.9054, 42.5439)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F21B2 #A4B221
analogous
#215CB2 #2F21B2 #7821B2
triadic
#2F21B2 #B22F21 #21B22F
tetradic
#2F21B2 #B2215C #A4B221 #21B278
square
#2F21B2 #B2215C #A4B221 #21B278
split-complementary
#2F21B2 #B27821 #5CB221
monochromatic
#140E4B #21177E #2F21B2 #4636DA #766AE3

Accessibility & contrast

On white

10.60
#2F21B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F21B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F21B2
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F21B2#FFFFFF#000000##FFFFFF
##2F21B21.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B6
Deuteranopia (green-blind)
#0038B0
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f21b2;
/* rgb */ color: rgb(47, 33, 178);
/* oklch */ color: oklch(38.9% 0.212 274.5);
Tailwind
colors: {
  custom: {
    50: '#7d61ca',
    500: '#2f21b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f21b2;
$custom-light: #7d61ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f21b2",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 245.793,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38868,
    "c": 0.21176,
    "h": 274.5
  },
  "luminance": 0.04906
}

Semantic roles & 50–950 ramp

primary
#2F21B2
secondary
#C0C966
accent
#EC3CDB
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #2F21B2

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

Preview Lab → · Contrast checker → · Palette generator →

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