#2A2DB1#2A2DB1

#2A2DB1 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.0% C 0.201 H 271.7°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#2A2DB1
RGBrgb(42, 45, 177)
HSLhsl(239, 62%, 43%)
HSVhsv(239, 76%, 69%)
CMYKcmyk(76.3%, 74.6%, 0%, 30.6%)
CIE-LABlab(28.23, 44.03, -69.49)
CIE-LCHlch(28.23, 82.27, 302.36°)
OKLaboklab(39.99% 0.0061 -0.2012)
OKLCHoklch(39.99% 0.201 271.7)
XYZxyz(9.8264, 5.5423, 42.1383)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2DB1 #B1AE2A
analogous
#2A70B1 #2A2DB1 #6B2AB1
triadic
#2A2DB1 #B12A2D #2DB12A
tetradic
#2A2DB1 #B12A70 #B1AE2A #2AB16B
square
#2A2DB1 #B12A70 #B1AE2A #2AB16B
split-complementary
#2A2DB1 #B16B2A #70B12A
monochromatic
#13144E #1E2080 #2A2DB1 #4548D3 #7779DF

Accessibility & contrast

On white

9.96
#2A2DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2A2DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2DB1
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2DB1#FFFFFF#000000##FFFFFF
##2A2DB11.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B5
Deuteranopia (green-blind)
#003CAF
Tritanopia (blue-blind)
#00536D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a2db1;
/* rgb */ color: rgb(42, 45, 177);
/* oklch */ color: oklch(40.0% 0.201 271.7);
Tailwind
colors: {
  custom: {
    50: '#7a68ca',
    500: '#2a2db1',
    950: '#000000',
  },
}
SCSS
$custom: #2a2db1;
$custom-light: #7a68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2db1",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 238.667,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.3999,
    "c": 0.20126,
    "h": 271.7
  },
  "luminance": 0.05543
}

Semantic roles & 50–950 ramp

primary
#2A2DB1
secondary
#C6C470
accent
#E143E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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