#2A2DB2#2A2DB2

#2A2DB2 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.1% C 0.202 H 271.7°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#2A2DB2
RGBrgb(42, 45, 178)
HSLhsl(239, 62%, 43%)
HSVhsv(239, 76%, 70%)
CMYKcmyk(76.4%, 74.7%, 0%, 30.2%)
CIE-LABlab(28.33, 44.37, -69.92)
CIE-LCHlch(28.33, 82.81, 302.40°)
OKLaboklab(40.1% 0.006 -0.2024)
OKLCHoklch(40.1% 0.202 271.7)
XYZxyz(9.9264, 5.5823, 42.6652)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2DB2 #B2AF2A
analogous
#2A71B2 #2A2DB2 #6B2AB2
triadic
#2A2DB2 #B22A2D #2DB22A
tetradic
#2A2DB2 #B22A71 #B2AF2A #2AB26B
square
#2A2DB2 #B22A71 #B2AF2A #2AB26B
split-complementary
#2A2DB2 #B26B2A #71B22A
monochromatic
#13144F #1E2080 #2A2DB2 #4649D3 #777ADF

Accessibility & contrast

On white

9.92
#2A2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2A2DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2DB2
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2DB2#FFFFFF#000000##FFFFFF
##2A2DB21.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#003CB0
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a2db2;
/* rgb */ color: rgb(42, 45, 178);
/* oklch */ color: oklch(40.1% 0.202 271.7);
Tailwind
colors: {
  custom: {
    50: '#7b68ca',
    500: '#2a2db2',
    950: '#000000',
  },
}
SCSS
$custom: #2a2db2;
$custom-light: #7b68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2db2",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 238.676,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40097,
    "c": 0.20249,
    "h": 271.7
  },
  "luminance": 0.05583
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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