#2A23A4#2A23A4

#2A23A4 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.2% C 0.195 H 273.8°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#2A23A4
RGBrgb(42, 35, 164)
HSLhsl(243, 65%, 39%)
HSVhsv(243, 79%, 64%)
CMYKcmyk(74.4%, 78.7%, 0%, 35.7%)
CIE-LABlab(24.87, 45.26, -67.22)
CIE-LCHlch(24.87, 81.03, 303.95°)
OKLaboklab(37.2% 0.0129 -0.1945)
OKLCHoklch(37.2% 0.195 273.8)
XYZxyz(8.2545, 4.3738, 35.5240)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A23A4 #9DA423
analogous
#235DA4 #2A23A4 #6B23A4
triadic
#2A23A4 #A42A23 #23A42A
tetradic
#2A23A4 #A4235D #9DA423 #23A46B
square
#2A23A4 #A4235D #9DA423 #23A46B
split-complementary
#2A23A4 #A46B23 #5DA423
monochromatic
#100D3F #1D1872 #2A23A4 #3A31D3 #6A64DE

Accessibility & contrast

On white

11.20
#2A23A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A23A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A23A4
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A23A4#FFFFFF#000000##FFFFFF
##2A23A41.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A8
Deuteranopia (green-blind)
#0035A2
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a23a4;
/* rgb */ color: rgb(42, 35, 164);
/* oklch */ color: oklch(37.2% 0.195 273.8);
Tailwind
colors: {
  custom: {
    50: '#7861c0',
    500: '#2a23a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a23a4;
$custom-light: #7861c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a23a4",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 243.256,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37203,
    "c": 0.19489,
    "h": 273.8
  },
  "luminance": 0.04375
}

Semantic roles & 50–950 ramp

primary
#2A23A4
secondary
#BEC360
accent
#E840DF
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2A23A4

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

Preview Lab → · Contrast checker → · Palette generator →

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