#2A23AA#2A23AA

#2A23AA is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 37.9% C 0.202 H 273.3°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#2A23AA
RGBrgb(42, 35, 170)
HSLhsl(243, 66%, 40%)
HSVhsv(243, 79%, 67%)
CMYKcmyk(75.3%, 79.4%, 0%, 33.3%)
CIE-LABlab(25.55, 47.18, -69.72)
CIE-LCHlch(25.55, 84.18, 304.09°)
OKLaboklab(37.88% 0.0115 -0.2017)
OKLCHoklch(37.88% 0.202 273.3)
XYZxyz(8.8092, 4.5957, 38.4452)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A23AA #A3AA23
analogous
#2360AA #2A23AA #6D23AA
triadic
#2A23AA #AA2A23 #23AA2A
tetradic
#2A23AA #AA2360 #A3AA23 #23AA6D
square
#2A23AA #AA2360 #A3AA23 #23AA6D
split-complementary
#2A23AA #AA6D23 #60AA23
monochromatic
#110E44 #1D1977 #2A23AA #3D35D5 #6E68E0

Accessibility & contrast

On white

10.94
#2A23AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A23AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A23AA
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A23AA#FFFFFF#000000##FFFFFF
##2A23AA1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AE
Deuteranopia (green-blind)
#0036A8
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a23aa;
/* rgb */ color: rgb(42, 35, 170);
/* oklch */ color: oklch(37.9% 0.202 273.3);
Tailwind
colors: {
  custom: {
    50: '#7a61c5',
    500: '#2a23aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a23aa;
$custom-light: #7a61c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a23aa",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 170
  },
  "hsl": {
    "h": 243.111,
    "s": 65.854,
    "l": 40.196
  },
  "oklch": {
    "l": 0.37877,
    "c": 0.20205,
    "h": 273.3
  },
  "luminance": 0.04597
}

Semantic roles & 50–950 ramp

primary
#2A23AA
secondary
#C0C663
accent
#E93FE0
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A23AA

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

Preview Lab → · Contrast checker → · Palette generator →

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