#2A23A1#2A23A1

#2A23A1 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.9% C 0.191 H 274.1°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#2A23A1
RGBrgb(42, 35, 161)
HSLhsl(243, 64%, 38%)
HSVhsv(243, 78%, 63%)
CMYKcmyk(73.9%, 78.3%, 0%, 36.9%)
CIE-LABlab(24.53, 44.29, -65.95)
CIE-LCHlch(24.53, 79.44, 303.88°)
OKLaboklab(36.87% 0.0136 -0.1908)
OKLCHoklch(36.87% 0.191 274.1)
XYZxyz(7.9868, 4.2667, 34.1139)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A23A1 #9AA123
analogous
#235BA1 #2A23A1 #6923A1
triadic
#2A23A1 #A12A23 #23A12A
tetradic
#2A23A1 #A1235B #9AA123 #23A169
square
#2A23A1 #A1235B #9AA123 #23A169
split-complementary
#2A23A1 #A16923 #5BA123
monochromatic
#100D3C #1D186F #2A23A1 #382FD2 #6862DD

Accessibility & contrast

On white

11.33
#2A23A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2A23A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A23A1
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A23A1#FFFFFF#000000##FFFFFF
##2A23A11.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00349F
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a23a1;
/* rgb */ color: rgb(42, 35, 161);
/* oklch */ color: oklch(36.9% 0.191 274.1);
Tailwind
colors: {
  custom: {
    50: '#7761be',
    500: '#2a23a1',
    950: '#000000',
  },
}
SCSS
$custom: #2a23a1;
$custom-light: #7761be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a23a1",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 161
  },
  "hsl": {
    "h": 243.333,
    "s": 64.286,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36868,
    "c": 0.19126,
    "h": 274.1
  },
  "luminance": 0.04268
}

Semantic roles & 50–950 ramp

primary
#2A23A1
secondary
#BCC25E
accent
#E741DE
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A23A1

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

Preview Lab → · Contrast checker → · Palette generator →

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