#2A2DB5#2A2DB5

#2A2DB5 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.4% C 0.206 H 271.5°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2A2DB5
RGBrgb(42, 45, 181)
HSLhsl(239, 62%, 44%)
HSVhsv(239, 77%, 71%)
CMYKcmyk(76.8%, 75.1%, 0%, 29%)
CIE-LABlab(28.65, 45.37, -71.18)
CIE-LCHlch(28.65, 84.41, 302.52°)
OKLaboklab(40.42% 0.0054 -0.2061)
OKLCHoklch(40.42% 0.206 271.5)
XYZxyz(10.2309, 5.7041, 44.2689)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2DB5 #B5B22A
analogous
#2A72B5 #2A2DB5 #6C2AB5
triadic
#2A2DB5 #B52A2D #2DB52A
tetradic
#2A2DB5 #B52A72 #B5B22A #2AB56C
square
#2A2DB5 #B52A72 #B5B22A #2AB56C
split-complementary
#2A2DB5 #B56C2A #72B52A
monochromatic
#131452 #1E2183 #2A2DB5 #484BD4 #797CE0

Accessibility & contrast

On white

9.81
#2A2DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2A2DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2DB5
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2DB5#FFFFFF#000000##FFFFFF
##2A2DB51.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB9
Deuteranopia (green-blind)
#003DB3
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a2db5;
/* rgb */ color: rgb(42, 45, 181);
/* oklch */ color: oklch(40.4% 0.206 271.5);
Tailwind
colors: {
  custom: {
    50: '#7b68cc',
    500: '#2a2db5',
    950: '#000000',
  },
}
SCSS
$custom: #2a2db5;
$custom-light: #7b68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2db5",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 238.705,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40419,
    "c": 0.20613,
    "h": 271.5
  },
  "luminance": 0.05705
}

Semantic roles & 50–950 ramp

primary
#2A2DB5
secondary
#C8C673
accent
#E242E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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