#2A1C72#2A1C72

#2A1C72 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.139 H 281.9°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#2A1C72
RGBrgb(42, 28, 114)
HSLhsl(250, 61%, 28%)
HSVhsv(250, 75%, 45%)
CMYKcmyk(63.2%, 75.4%, 0%, 55.3%)
CIE-LABlab(18.09, 32.69, -47.15)
CIE-LCHlch(18.09, 57.38, 304.74°)
OKLaboklab(30.81% 0.0288 -0.1359)
OKLCHoklch(30.81% 0.139 281.9)
XYZxyz(4.4064, 2.5373, 16.1739)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C72 #64721C
analogous
#1C3972 #2A1C72 #551C72
triadic
#2A1C72 #722A1C #1C722A
tetradic
#2A1C72 #721C39 #64721C #1C7255
square
#2A1C72 #721C39 #64721C #1C7255
split-complementary
#2A1C72 #72551C #39721C
monochromatic
#090619 #181041 #2A1C72 #3C28A3 #523ACF

Accessibility & contrast

On white

13.93
#2A1C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2A1C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C72
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C72#FFFFFF#000000##FFFFFF
##2A1C721.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1c72;
/* rgb */ color: rgb(42, 28, 114);
/* oklch */ color: oklch(30.8% 0.139 281.9);
Tailwind
colors: {
  custom: {
    50: '#6d5a9b',
    500: '#2a1c72',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c72;
$custom-light: #6d5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c72",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 249.767,
    "s": 60.563,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3081,
    "c": 0.13892,
    "h": 281.9
  },
  "luminance": 0.02538
}

Semantic roles & 50–950 ramp

primary
#2A1C72
secondary
#96A643
accent
#E444CA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2A1C72

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

Preview Lab → · Contrast checker → · Palette generator →

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