#2A2499#2A2499

#2A2499 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.180 H 274.7°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#2A2499
RGBrgb(42, 36, 153)
HSLhsl(243, 62%, 37%)
HSVhsv(243, 76%, 60%)
CMYKcmyk(72.5%, 76.5%, 0%, 40%)
CIE-LABlab(23.85, 41.11, -62.20)
CIE-LCHlch(23.85, 74.56, 303.46°)
OKLaboklab(36.12% 0.0149 -0.1799)
OKLCHoklch(36.12% 0.18 274.7)
XYZxyz(7.3336, 4.0532, 30.5267)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2499 #939924
analogous
#245999 #2A2499 #652499
triadic
#2A2499 #992A24 #24992A
tetradic
#2A2499 #992459 #939924 #249965
square
#2A2499 #992459 #939924 #249965
split-complementary
#2A2499 #996524 #599924
monochromatic
#0F0D36 #1C1867 #2A2499 #3830CB #655ED9

Accessibility & contrast

On white

11.60
#2A2499 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A2499 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2499
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2499#FFFFFF#000000##FFFFFF
##2A24991.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003397
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2499;
/* rgb */ color: rgb(42, 36, 153);
/* oklch */ color: oklch(36.1% 0.180 274.7);
Tailwind
colors: {
  custom: {
    50: '#7561b8',
    500: '#2a2499',
    950: '#000000',
  },
}
SCSS
$custom: #2a2499;
$custom-light: #7561b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2499",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 153
  },
  "hsl": {
    "h": 243.077,
    "s": 61.905,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36124,
    "c": 0.18049,
    "h": 274.7
  },
  "luminance": 0.04054
}

Semantic roles & 50–950 ramp

primary
#2A2499
secondary
#B9BE5B
accent
#E543DD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A2499

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

Preview Lab → · Contrast checker → · Palette generator →

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