#2A2DB4#2A2DB4

#2A2DB4 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.3% C 0.205 H 271.6°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#2A2DB4
RGBrgb(42, 45, 180)
HSLhsl(239, 62%, 44%)
HSVhsv(239, 77%, 71%)
CMYKcmyk(76.7%, 75%, 0%, 29.4%)
CIE-LABlab(28.55, 45.04, -70.76)
CIE-LCHlch(28.55, 83.88, 302.48°)
OKLaboklab(40.31% 0.0056 -0.2048)
OKLCHoklch(40.31% 0.205 271.6)
XYZxyz(10.1287, 5.6632, 43.7305)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2DB4 #B4B12A
analogous
#2A72B4 #2A2DB4 #6C2AB4
triadic
#2A2DB4 #B42A2D #2DB42A
tetradic
#2A2DB4 #B42A72 #B4B12A #2AB46C
square
#2A2DB4 #B42A72 #B4B12A #2AB46C
split-complementary
#2A2DB4 #B46C2A #72B42A
monochromatic
#131451 #1E2182 #2A2DB4 #474AD4 #797BE0

Accessibility & contrast

On white

9.85
#2A2DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2A2DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2DB4
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2DB4#FFFFFF#000000##FFFFFF
##2A2DB41.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#003CB2
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a2db4;
/* rgb */ color: rgb(42, 45, 180);
/* oklch */ color: oklch(40.3% 0.205 271.6);
Tailwind
colors: {
  custom: {
    50: '#7b68cc',
    500: '#2a2db4',
    950: '#000000',
  },
}
SCSS
$custom: #2a2db4;
$custom-light: #7b68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2db4",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 238.696,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40312,
    "c": 0.20493,
    "h": 271.6
  },
  "luminance": 0.05664
}

Semantic roles & 50–950 ramp

primary
#2A2DB4
secondary
#C8C672
accent
#E243E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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