#2A24A7#2A24A7

#2A24A7 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.7% C 0.198 H 273.4°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#2A24A7
RGBrgb(42, 36, 167)
HSLhsl(243, 65%, 40%)
HSVhsv(243, 78%, 65%)
CMYKcmyk(74.9%, 78.4%, 0%, 34.5%)
CIE-LABlab(25.39, 45.70, -68.17)
CIE-LCHlch(25.39, 82.07, 303.83°)
OKLaboklab(37.67% 0.0118 -0.1972)
OKLCHoklch(37.67% 0.198 273.4)
XYZxyz(8.5584, 4.5431, 36.9776)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A24A7 #A1A724
analogous
#2460A7 #2A24A7 #6C24A7
triadic
#2A24A7 #A72A24 #24A72A
tetradic
#2A24A7 #A72460 #A1A724 #24A76C
square
#2A24A7 #A72460 #A1A724 #24A76C
split-complementary
#2A24A7 #A76C24 #60A724
monochromatic
#110E42 #1D1975 #2A24A7 #3C35D3 #6D67DE

Accessibility & contrast

On white

11.00
#2A24A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A24A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A24A7
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A24A7#FFFFFF#000000##FFFFFF
##2A24A71.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0036A5
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a24a7;
/* rgb */ color: rgb(42, 36, 167);
/* oklch */ color: oklch(37.7% 0.198 273.4);
Tailwind
colors: {
  custom: {
    50: '#7962c2',
    500: '#2a24a7',
    950: '#000000',
  },
}
SCSS
$custom: #2a24a7;
$custom-light: #7962c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a24a7",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 167
  },
  "hsl": {
    "h": 242.748,
    "s": 64.532,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37667,
    "c": 0.1976,
    "h": 273.4
  },
  "luminance": 0.04544
}

Semantic roles & 50–950 ramp

primary
#2A24A7
secondary
#C0C463
accent
#E840E0
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A24A7

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

Preview Lab → · Contrast checker → · Palette generator →

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