#2A2491#2A2491

#2A2491 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.170 H 275.6°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#2A2491
RGBrgb(42, 36, 145)
HSLhsl(243, 60%, 35%)
HSVhsv(243, 75%, 57%)
CMYKcmyk(71%, 75.2%, 0%, 43.1%)
CIE-LABlab(22.99, 38.43, -58.68)
CIE-LCHlch(22.99, 70.14, 303.22°)
OKLaboklab(35.26% 0.0166 -0.1696)
OKLCHoklch(35.26% 0.17 275.6)
XYZxyz(6.6949, 3.7977, 27.1628)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2491 #8B9124
analogous
#245491 #2A2491 #602491
triadic
#2A2491 #912A24 #24912A
tetradic
#2A2491 #912454 #8B9124 #249160
square
#2A2491 #912454 #8B9124 #249160
split-complementary
#2A2491 #916024 #549124
monochromatic
#0E0C2F #1C1860 #2A2491 #3830C2 #6059D6

Accessibility & contrast

On white

11.93
#2A2491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2A2491 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2491
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2491#FFFFFF#000000##FFFFFF
##2A24911.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00328F
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2491;
/* rgb */ color: rgb(42, 36, 145);
/* oklch */ color: oklch(35.3% 0.170 275.6);
Tailwind
colors: {
  custom: {
    50: '#7460b2',
    500: '#2a2491',
    950: '#000000',
  },
}
SCSS
$custom: #2a2491;
$custom-light: #7460b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2491",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 243.303,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35263,
    "c": 0.17043,
    "h": 275.6
  },
  "luminance": 0.03798
}

Semantic roles & 50–950 ramp

primary
#2A2491
secondary
#B5BA56
accent
#E344DB
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A2491

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

Preview Lab → · Contrast checker → · Palette generator →

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