#2A23A3#2A23A3

#2A23A3 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.194 H 273.9°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#2A23A3
RGBrgb(42, 35, 163)
HSLhsl(243, 65%, 39%)
HSVhsv(243, 79%, 64%)
CMYKcmyk(74.2%, 78.5%, 0%, 36.1%)
CIE-LABlab(24.76, 44.93, -66.80)
CIE-LCHlch(24.76, 80.50, 303.93°)
OKLaboklab(37.09% 0.0132 -0.1932)
OKLCHoklch(37.09% 0.194 273.9)
XYZxyz(8.1645, 4.3378, 35.0502)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A23A3 #9CA323
analogous
#235CA3 #2A23A3 #6A23A3
triadic
#2A23A3 #A32A23 #23A32A
tetradic
#2A23A3 #A3235C #9CA323 #23A36A
square
#2A23A3 #A3235C #9CA323 #23A36A
split-complementary
#2A23A3 #A36A23 #5CA323
monochromatic
#100D3E #1D1871 #2A23A3 #3931D3 #6A63DD

Accessibility & contrast

On white

11.24
#2A23A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2A23A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A23A3
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A23A3#FFFFFF#000000##FFFFFF
##2A23A31.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A7
Deuteranopia (green-blind)
#0035A1
Tritanopia (blue-blind)
#004A62
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a23a3;
/* rgb */ color: rgb(42, 35, 163);
/* oklch */ color: oklch(37.1% 0.194 273.9);
Tailwind
colors: {
  custom: {
    50: '#7861c0',
    500: '#2a23a3',
    950: '#000000',
  },
}
SCSS
$custom: #2a23a3;
$custom-light: #7861c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a23a3",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 163
  },
  "hsl": {
    "h": 243.281,
    "s": 64.646,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37091,
    "c": 0.19368,
    "h": 273.9
  },
  "luminance": 0.04339
}

Semantic roles & 50–950 ramp

primary
#2A23A3
secondary
#BDC35F
accent
#E840DE
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A23A3

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

Preview Lab → · Contrast checker → · Palette generator →

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