#2F21A0#2F21A0

#2F21A0 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.191 H 276.5°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#2F21A0
RGBrgb(47, 33, 160)
HSLhsl(247, 66%, 38%)
HSVhsv(247, 79%, 63%)
CMYKcmyk(70.6%, 79.4%, 0%, 37.3%)
CIE-LABlab(24.42, 45.46, -65.53)
CIE-LCHlch(24.42, 79.75, 304.75°)
OKLaboklab(36.85% 0.0215 -0.1894)
OKLCHoklch(36.85% 0.191 276.5)
XYZxyz(8.0592, 4.2294, 33.6425)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F21A0 #92A021
analogous
#2153A0 #2F21A0 #6E21A0
triadic
#2F21A0 #A02F21 #21A02F
tetradic
#2F21A0 #A02153 #92A021 #21A06E
square
#2F21A0 #A02153 #92A021 #21A06E
split-complementary
#2F21A0 #A06E21 #53A021
monochromatic
#110C3B #20176D #2F21A0 #3E2BD3 #6C5EDE

Accessibility & contrast

On white

11.38
#2F21A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F21A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F21A0
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F21A0#FFFFFF#000000##FFFFFF
##2F21A01.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f21a0;
/* rgb */ color: rgb(47, 33, 160);
/* oklch */ color: oklch(36.8% 0.191 276.5);
Tailwind
colors: {
  custom: {
    50: '#7960bd',
    500: '#2f21a0',
    950: '#000000',
  },
}
SCSS
$custom: #2f21a0;
$custom-light: #7960bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f21a0",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 160
  },
  "hsl": {
    "h": 246.614,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36845,
    "c": 0.19061,
    "h": 276.5
  },
  "luminance": 0.0423
}

Semantic roles & 50–950 ramp

primary
#2F21A0
secondary
#B7C25B
accent
#E93FD6
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F21A0

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

Preview Lab → · Contrast checker → · Palette generator →

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