#2A24A6#2A24A6

#2A24A6 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.6% C 0.196 H 273.5°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2A24A6
RGBrgb(42, 36, 166)
HSLhsl(243, 64%, 40%)
HSVhsv(243, 78%, 65%)
CMYKcmyk(74.7%, 78.3%, 0%, 34.9%)
CIE-LABlab(25.28, 45.37, -67.75)
CIE-LCHlch(25.28, 81.54, 303.81°)
OKLaboklab(37.56% 0.0121 -0.196)
OKLCHoklch(37.56% 0.196 273.5)
XYZxyz(8.4664, 4.5063, 36.4926)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A24A6 #A0A624
analogous
#245FA6 #2A24A6 #6B24A6
triadic
#2A24A6 #A62A24 #24A62A
tetradic
#2A24A6 #A6245F #A0A624 #24A66B
square
#2A24A6 #A6245F #A0A624 #24A66B
split-complementary
#2A24A6 #A66B24 #5FA624
monochromatic
#110E41 #1D1974 #2A24A6 #3C34D3 #6C66DE

Accessibility & contrast

On white

11.04
#2A24A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A24A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A24A6
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A24A6#FFFFFF#000000##FFFFFF
##2A24A61.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a24a6;
/* rgb */ color: rgb(42, 36, 166);
/* oklch */ color: oklch(37.6% 0.196 273.5);
Tailwind
colors: {
  custom: {
    50: '#7961c2',
    500: '#2a24a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a24a6;
$custom-light: #7961c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a24a6",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 166
  },
  "hsl": {
    "h": 242.769,
    "s": 64.356,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37555,
    "c": 0.1964,
    "h": 273.5
  },
  "luminance": 0.04507
}

Semantic roles & 50–950 ramp

primary
#2A24A6
secondary
#BFC462
accent
#E740E0
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A24A6

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

Preview Lab → · Contrast checker → · Palette generator →

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