#2A2DB6#2A2DB6

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

Color values

HEX#2A2DB6
RGBrgb(42, 45, 182)
HSLhsl(239, 63%, 44%)
HSVhsv(239, 77%, 71%)
CMYKcmyk(76.9%, 75.3%, 0%, 28.6%)
CIE-LABlab(28.76, 45.71, -71.59)
CIE-LCHlch(28.76, 84.94, 302.56°)
OKLaboklab(40.53% 0.0053 -0.2073)
OKLCHoklch(40.53% 0.207 271.5)
XYZxyz(10.3339, 5.7453, 44.8112)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2DB6 #B6B32A
analogous
#2A73B6 #2A2DB6 #6D2AB6
triadic
#2A2DB6 #B62A2D #2DB62A
tetradic
#2A2DB6 #B62A73 #B6B32A #2AB66D
square
#2A2DB6 #B62A73 #B6B32A #2AB66D
split-complementary
#2A2DB6 #B66D2A #73B62A
monochromatic
#131453 #1F2184 #2A2DB6 #484BD5 #7A7CE0

Accessibility & contrast

On white

9.77
#2A2DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2A2DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2DB6
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2DB6#FFFFFF#000000##FFFFFF
##2A2DB61.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2db6;
/* rgb */ color: rgb(42, 45, 182);
/* oklch */ color: oklch(40.5% 0.207 271.5);
Tailwind
colors: {
  custom: {
    50: '#7c68cd',
    500: '#2a2db6',
    950: '#000000',
  },
}
SCSS
$custom: #2a2db6;
$custom-light: #7c68cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2db6",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 238.714,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40527,
    "c": 0.20735,
    "h": 271.5
  },
  "luminance": 0.05746
}

Semantic roles & 50–950 ramp

primary
#2A2DB6
secondary
#C8C773
accent
#E242E6
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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