#2D20A5#2D20A5

#2D20A5 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.198 H 275.2°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2D20A5
RGBrgb(45, 32, 165)
HSLhsl(246, 68%, 39%)
HSVhsv(246, 81%, 65%)
CMYKcmyk(72.7%, 80.6%, 0%, 35.3%)
CIE-LABlab(24.66, 47.35, -68.17)
CIE-LCHlch(24.66, 83.00, 304.78°)
OKLaboklab(37.14% 0.0178 -0.1971)
OKLCHoklch(37.14% 0.198 275.2)
XYZxyz(8.3880, 4.3067, 35.9792)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D20A5 #98A520
analogous
#2055A5 #2D20A5 #6F20A5
triadic
#2D20A5 #A52D20 #20A52D
tetradic
#2D20A5 #A52055 #98A520 #20A56F
square
#2D20A5 #A52055 #98A520 #20A56F
split-complementary
#2D20A5 #A56F20 #55A520
monochromatic
#110C3E #1F1672 #2D20A5 #3D2CD6 #6C5FE0

Accessibility & contrast

On white

11.28
#2D20A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2D20A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D20A5
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D20A5#FFFFFF#000000##FFFFFF
##2D20A51.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A9
Deuteranopia (green-blind)
#0034A3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d20a5;
/* rgb */ color: rgb(45, 32, 165);
/* oklch */ color: oklch(37.1% 0.198 275.2);
Tailwind
colors: {
  custom: {
    50: '#7a5fc1',
    500: '#2d20a5',
    950: '#000000',
  },
}
SCSS
$custom: #2d20a5;
$custom-light: #7a5fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d20a5",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 165
  },
  "hsl": {
    "h": 245.865,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37143,
    "c": 0.1979,
    "h": 275.2
  },
  "luminance": 0.04308
}

Semantic roles & 50–950 ramp

primary
#2D20A5
secondary
#BAC55C
accent
#EA3DD9
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2D20A5

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

Preview Lab → · Contrast checker → · Palette generator →

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