#2A2489#2A2489

#2A2489 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.160 H 276.5°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#2A2489
RGBrgb(42, 36, 137)
HSLhsl(244, 58%, 34%)
HSVhsv(244, 74%, 54%)
CMYKcmyk(69.3%, 73.7%, 0%, 46.3%)
CIE-LABlab(22.16, 35.71, -55.07)
CIE-LCHlch(22.16, 65.63, 302.96°)
OKLaboklab(34.42% 0.0182 -0.1591)
OKLCHoklch(34.42% 0.16 276.5)
XYZxyz(6.0996, 3.5596, 24.0277)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2489 #838924
analogous
#245189 #2A2489 #5D2489
triadic
#2A2489 #892A24 #24892A
tetradic
#2A2489 #892451 #838924 #24895D
square
#2A2489 #892451 #838924 #24895D
split-complementary
#2A2489 #895D24 #518924
monochromatic
#0C0B28 #1B1759 #2A2489 #3931B9 #5C55D2

Accessibility & contrast

On white

12.27
#2A2489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A2489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2489
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2489#FFFFFF#000000##FFFFFF
##2A24891.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a2489;
/* rgb */ color: rgb(42, 36, 137);
/* oklch */ color: oklch(34.4% 0.160 276.5);
Tailwind
colors: {
  custom: {
    50: '#7260ac',
    500: '#2a2489',
    950: '#000000',
  },
}
SCSS
$custom: #2a2489;
$custom-light: #7260ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2489",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 137
  },
  "hsl": {
    "h": 243.564,
    "s": 58.382,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34421,
    "c": 0.16012,
    "h": 276.5
  },
  "luminance": 0.0356
}

Semantic roles & 50–950 ramp

primary
#2A2489
secondary
#B1B752
accent
#E246D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A2489

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

Preview Lab → · Contrast checker → · Palette generator →

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