#2A1E72#2A1E72

#2A1E72 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.137 H 281.4°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#2A1E72
RGBrgb(42, 30, 114)
HSLhsl(249, 58%, 28%)
HSVhsv(249, 74%, 45%)
CMYKcmyk(63.2%, 73.7%, 0%, 55.3%)
CIE-LABlab(18.52, 31.49, -46.44)
CIE-LCHlch(18.52, 56.11, 304.14°)
OKLaboklab(31.12% 0.0271 -0.1338)
OKLCHoklch(31.12% 0.137 281.4)
XYZxyz(4.4554, 2.6354, 16.1902)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E72 #66721E
analogous
#1E3C72 #2A1E72 #541E72
triadic
#2A1E72 #722A1E #1E722A
tetradic
#2A1E72 #721E3C #66721E #1E7254
square
#2A1E72 #721E3C #66721E #1E7254
split-complementary
#2A1E72 #72541E #3C721E
monochromatic
#090618 #181142 #2A1E72 #3C2BA2 #523ECC

Accessibility & contrast

On white

13.75
#2A1E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2A1E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E72
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E72#FFFFFF#000000##FFFFFF
##2A1E721.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a1e72;
/* rgb */ color: rgb(42, 30, 114);
/* oklch */ color: oklch(31.1% 0.137 281.4);
Tailwind
colors: {
  custom: {
    50: '#6d5b9b',
    500: '#2a1e72',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e72;
$custom-light: #6d5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e72",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 114
  },
  "hsl": {
    "h": 248.571,
    "s": 58.333,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31118,
    "c": 0.13656,
    "h": 281.4
  },
  "luminance": 0.02636
}

Semantic roles & 50–950 ramp

primary
#2A1E72
secondary
#98A646
accent
#E246CB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2A1E72

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

Preview Lab → · Contrast checker → · Palette generator →

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