#2A2DB8#2A2DB8

#2A2DB8 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.7% C 0.210 H 271.3°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#2A2DB8
RGBrgb(42, 45, 184)
HSLhsl(239, 63%, 44%)
HSVhsv(239, 77%, 72%)
CMYKcmyk(77.2%, 75.5%, 0%, 27.8%)
CIE-LABlab(28.98, 46.37, -72.43)
CIE-LCHlch(28.98, 86.00, 302.63°)
OKLaboklab(40.74% 0.0049 -0.2097)
OKLCHoklch(40.74% 0.21 271.3)
XYZxyz(10.5420, 5.8285, 45.9075)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2DB8 #B8B52A
analogous
#2A74B8 #2A2DB8 #6E2AB8
triadic
#2A2DB8 #B82A2D #2DB82A
tetradic
#2A2DB8 #B82A74 #B8B52A #2AB86E
square
#2A2DB8 #B82A74 #B8B52A #2AB86E
split-complementary
#2A2DB8 #B86E2A #74B82A
monochromatic
#131554 #1F2186 #2A2DB8 #4A4DD6 #7B7EE1

Accessibility & contrast

On white

9.70
#2A2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2A2DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2DB8
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2DB8#FFFFFF#000000##FFFFFF
##2A2DB81.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBC
Deuteranopia (green-blind)
#003DB6
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a2db8;
/* rgb */ color: rgb(42, 45, 184);
/* oklch */ color: oklch(40.7% 0.210 271.3);
Tailwind
colors: {
  custom: {
    50: '#7c68cf',
    500: '#2a2db8',
    950: '#000000',
  },
}
SCSS
$custom: #2a2db8;
$custom-light: #7c68cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2db8",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 238.732,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40743,
    "c": 0.20976,
    "h": 271.3
  },
  "luminance": 0.0583
}

Semantic roles & 50–950 ramp

primary
#2A2DB8
secondary
#C9C775
accent
#E242E6
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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