#2A24A5#2A24A5

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

Color values

HEX#2A24A5
RGBrgb(42, 36, 165)
HSLhsl(243, 64%, 39%)
HSVhsv(243, 78%, 65%)
CMYKcmyk(74.5%, 78.2%, 0%, 35.3%)
CIE-LABlab(25.17, 45.05, -67.33)
CIE-LCHlch(25.17, 81.01, 303.78°)
OKLaboklab(37.44% 0.0123 -0.1948)
OKLCHoklch(37.44% 0.195 273.6)
XYZxyz(8.3750, 4.4697, 36.0114)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A24A5 #9FA524
analogous
#245EA5 #2A24A5 #6B24A5
triadic
#2A24A5 #A52A24 #24A52A
tetradic
#2A24A5 #A5245E #9FA524 #24A56B
square
#2A24A5 #A5245E #9FA524 #24A56B
split-complementary
#2A24A5 #A56B24 #5EA524
monochromatic
#100E41 #1D1973 #2A24A5 #3B34D3 #6B66DE

Accessibility & contrast

On white

11.09
#2A24A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A24A5
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A24A5#FFFFFF#000000##FFFFFF
##2A24A51.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a24a5;
/* rgb */ color: rgb(42, 36, 165);
/* oklch */ color: oklch(37.4% 0.195 273.6);
Tailwind
colors: {
  custom: {
    50: '#7861c1',
    500: '#2a24a5',
    950: '#000000',
  },
}
SCSS
$custom: #2a24a5;
$custom-light: #7861c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a24a5",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 165
  },
  "hsl": {
    "h": 242.791,
    "s": 64.179,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37444,
    "c": 0.19519,
    "h": 273.6
  },
  "luminance": 0.04471
}

Semantic roles & 50–950 ramp

primary
#2A24A5
secondary
#BFC362
accent
#E741DF
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2A24A5

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

Preview Lab → · Contrast checker → · Palette generator →

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