#2D20AA#2D20AA

#2D20AA is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.7% C 0.204 H 274.6°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#2D20AA
RGBrgb(45, 32, 170)
HSLhsl(246, 68%, 40%)
HSVhsv(246, 81%, 67%)
CMYKcmyk(73.5%, 81.2%, 0%, 33.3%)
CIE-LABlab(25.24, 48.90, -70.23)
CIE-LCHlch(25.24, 85.58, 304.85°)
OKLaboklab(37.71% 0.0165 -0.2031)
OKLCHoklch(37.71% 0.204 274.6)
XYZxyz(8.8520, 4.4923, 38.4230)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D20AA #9DAA20
analogous
#2058AA #2D20AA #7220AA
triadic
#2D20AA #AA2D20 #20AA2D
tetradic
#2D20AA #AA2058 #9DAA20 #20AA72
square
#2D20AA #AA2058 #9DAA20 #20AA72
split-complementary
#2D20AA #AA7220 #58AA20
monochromatic
#120D43 #1F1676 #2D20AA #3F2FD8 #6F63E2

Accessibility & contrast

On white

11.06
#2D20AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D20AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D20AA
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D20AA#FFFFFF#000000##FFFFFF
##2D20AA1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AE
Deuteranopia (green-blind)
#0035A8
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d20aa;
/* rgb */ color: rgb(45, 32, 170);
/* oklch */ color: oklch(37.7% 0.204 274.6);
Tailwind
colors: {
  custom: {
    50: '#7b60c5',
    500: '#2d20aa',
    950: '#000000',
  },
}
SCSS
$custom: #2d20aa;
$custom-light: #7b60c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d20aa",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 170
  },
  "hsl": {
    "h": 245.652,
    "s": 68.317,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37711,
    "c": 0.20378,
    "h": 274.6
  },
  "luminance": 0.04493
}

Semantic roles & 50–950 ramp

primary
#2D20AA
secondary
#BDC75F
accent
#EB3DDB
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D20AA

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

Preview Lab → · Contrast checker → · Palette generator →

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