#2A23A6#2A23A6

#2A23A6 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.4% C 0.197 H 273.6°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#2A23A6
RGBrgb(42, 35, 166)
HSLhsl(243, 65%, 39%)
HSVhsv(243, 79%, 65%)
CMYKcmyk(74.7%, 78.9%, 0%, 34.9%)
CIE-LABlab(25.10, 45.90, -68.06)
CIE-LCHlch(25.10, 82.09, 304.00°)
OKLaboklab(37.43% 0.0125 -0.1969)
OKLCHoklch(37.43% 0.197 273.6)
XYZxyz(8.4365, 4.4466, 36.4827)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A23A6 #9FA623
analogous
#235EA6 #2A23A6 #6C23A6
triadic
#2A23A6 #A62A23 #23A62A
tetradic
#2A23A6 #A6235E #9FA623 #23A66C
square
#2A23A6 #A6235E #9FA623 #23A66C
split-complementary
#2A23A6 #A66C23 #5EA623
monochromatic
#100E41 #1D1873 #2A23A6 #3B32D4 #6B65DF

Accessibility & contrast

On white

11.11
#2A23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2A23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A23A6
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A23A6#FFFFFF#000000##FFFFFF
##2A23A61.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a23a6;
/* rgb */ color: rgb(42, 35, 166);
/* oklch */ color: oklch(37.4% 0.197 273.6);
Tailwind
colors: {
  custom: {
    50: '#7961c2',
    500: '#2a23a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a23a6;
$custom-light: #7961c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a23a6",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 243.206,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37427,
    "c": 0.19728,
    "h": 273.6
  },
  "luminance": 0.04447
}

Semantic roles & 50–950 ramp

primary
#2A23A6
secondary
#BFC461
accent
#E840DF
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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