#2D20A6#2D20A6

#2D20A6 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.3% C 0.199 H 275.1°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#2D20A6
RGBrgb(45, 32, 166)
HSLhsl(246, 68%, 39%)
HSVhsv(246, 81%, 65%)
CMYKcmyk(72.9%, 80.7%, 0%, 34.9%)
CIE-LABlab(24.78, 47.66, -68.58)
CIE-LCHlch(24.78, 83.52, 304.80°)
OKLaboklab(37.26% 0.0176 -0.1983)
OKLCHoklch(37.26% 0.199 275.1)
XYZxyz(8.4794, 4.3433, 36.4605)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D20A6 #99A620
analogous
#2056A6 #2D20A6 #7020A6
triadic
#2D20A6 #A62D20 #20A62D
tetradic
#2D20A6 #A62056 #99A620 #20A670
square
#2D20A6 #A62056 #99A620 #20A670
split-complementary
#2D20A6 #A67020 #56A620
monochromatic
#110C3F #1F1673 #2D20A6 #3D2DD6 #6C60E0

Accessibility & contrast

On white

11.24
#2D20A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2D20A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D20A6
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D20A6#FFFFFF#000000##FFFFFF
##2D20A61.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d20a6;
/* rgb */ color: rgb(45, 32, 166);
/* oklch */ color: oklch(37.3% 0.199 275.1);
Tailwind
colors: {
  custom: {
    50: '#7a5fc2',
    500: '#2d20a6',
    950: '#000000',
  },
}
SCSS
$custom: #2d20a6;
$custom-light: #7a5fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d20a6",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 245.821,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37256,
    "c": 0.19909,
    "h": 275.1
  },
  "luminance": 0.04344
}

Semantic roles & 50–950 ramp

primary
#2D20A6
secondary
#BBC55D
accent
#EB3DDA
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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