#2D21A0#2D21A0

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

Color values

HEX#2D21A0
RGBrgb(45, 33, 160)
HSLhsl(246, 66%, 38%)
HSVhsv(246, 79%, 63%)
CMYKcmyk(71.9%, 79.4%, 0%, 37.3%)
CIE-LABlab(24.27, 45.27, -65.78)
CIE-LCHlch(24.27, 79.85, 304.54°)
OKLaboklab(36.7% 0.0187 -0.1902)
OKLCHoklch(36.7% 0.191 275.6)
XYZxyz(7.9691, 4.1829, 33.6383)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D21A0 #94A021
analogous
#2155A0 #2D21A0 #6C21A0
triadic
#2D21A0 #A02D21 #21A02D
tetradic
#2D21A0 #A02155 #94A021 #21A06C
square
#2D21A0 #A02155 #94A021 #21A06C
split-complementary
#2D21A0 #A06C21 #55A021
monochromatic
#100C3B #1F176D #2D21A0 #3B2BD3 #6A5EDE

Accessibility & contrast

On white

11.43
#2D21A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2D21A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D21A0
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D21A0#FFFFFF#000000##FFFFFF
##2D21A01.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d21a0;
/* rgb */ color: rgb(45, 33, 160);
/* oklch */ color: oklch(36.7% 0.191 275.6);
Tailwind
colors: {
  custom: {
    50: '#7960bd',
    500: '#2d21a0',
    950: '#000000',
  },
}
SCSS
$custom: #2d21a0;
$custom-light: #7960bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d21a0",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 160
  },
  "hsl": {
    "h": 245.669,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36703,
    "c": 0.1911,
    "h": 275.6
  },
  "luminance": 0.04184
}

Semantic roles & 50–950 ramp

primary
#2D21A0
secondary
#B8C25B
accent
#E93FD9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D21A0

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

Preview Lab → · Contrast checker → · Palette generator →

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