#2F21B3#2F21B3

#2F21B3 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 39.0% C 0.213 H 274.4°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#2F21B3
RGBrgb(47, 33, 179)
HSLhsl(246, 69%, 42%)
HSVhsv(246, 82%, 70%)
CMYKcmyk(73.7%, 81.6%, 0%, 29.8%)
CIE-LABlab(26.58, 51.33, -73.41)
CIE-LCHlch(26.58, 89.57, 304.96°)
OKLaboklab(38.98% 0.0164 -0.2123)
OKLCHoklch(38.98% 0.213 274.4)
XYZxyz(9.8501, 4.9457, 43.0746)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F21B3 #A5B321
analogous
#215CB3 #2F21B3 #7821B3
triadic
#2F21B3 #B32F21 #21B32F
tetradic
#2F21B3 #B3215C #A5B321 #21B378
square
#2F21B3 #B3215C #A5B321 #21B378
split-complementary
#2F21B3 #B37821 #5CB321
monochromatic
#140E4C #21177F #2F21B3 #4737DA #766BE4

Accessibility & contrast

On white

10.56
#2F21B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2F21B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F21B3
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F21B3#FFFFFF#000000##FFFFFF
##2F21B31.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f21b3;
/* rgb */ color: rgb(47, 33, 179);
/* oklch */ color: oklch(39.0% 0.213 274.4);
Tailwind
colors: {
  custom: {
    50: '#7e61cb',
    500: '#2f21b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f21b3;
$custom-light: #7e61cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f21b3",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 179
  },
  "hsl": {
    "h": 245.753,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.38982,
    "c": 0.21291,
    "h": 274.4
  },
  "luminance": 0.04947
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F21B3

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

Preview Lab → · Contrast checker → · Palette generator →

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