#2A1982#2A1982

#2A1982 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.162 H 279.4°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#2A1982
RGBrgb(42, 25, 130)
HSLhsl(250, 68%, 30%)
HSVhsv(250, 81%, 51%)
CMYKcmyk(67.7%, 80.8%, 0%, 49%)
CIE-LABlab(19.22, 39.58, -55.51)
CIE-LCHlch(19.22, 68.18, 305.49°)
OKLaboklab(32.12% 0.0266 -0.1603)
OKLCHoklch(32.12% 0.162 279.4)
XYZxyz(5.3305, 2.7988, 21.3741)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1982 #718219
analogous
#193D82 #2A1982 #5E1982
triadic
#2A1982 #822A19 #19822A
tetradic
#2A1982 #82193D #718219 #19825E
square
#2A1982 #82193D #718219 #19825E
split-complementary
#2A1982 #825E19 #3D8219
monochromatic
#09051B #190F4F #2A1982 #3B23B5 #553CD9

Accessibility & contrast

On white

13.46
#2A1982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2A1982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1982
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1982#FFFFFF#000000##FFFFFF
##2A19821.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003285
Deuteranopia (green-blind)
#002A80
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1982;
/* rgb */ color: rgb(42, 25, 130);
/* oklch */ color: oklch(32.1% 0.162 279.4);
Tailwind
colors: {
  custom: {
    50: '#7159a7',
    500: '#2a1982',
    950: '#000000',
  },
}
SCSS
$custom: #2a1982;
$custom-light: #7159a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1982",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 249.714,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32122,
    "c": 0.16248,
    "h": 279.4
  },
  "luminance": 0.02799
}

Semantic roles & 50–950 ramp

primary
#2A1982
secondary
#A3B641
accent
#EB3DCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1982

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

Preview Lab → · Contrast checker → · Palette generator →

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