#2A2181#2A2181

#2A2181 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.153 H 278.2°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#2A2181
RGBrgb(42, 33, 129)
HSLhsl(246, 59%, 32%)
HSVhsv(246, 74%, 51%)
CMYKcmyk(67.4%, 74.4%, 0%, 49.4%)
CIE-LABlab(20.69, 34.77, -52.45)
CIE-LCHlch(20.69, 62.93, 303.54°)
OKLaboklab(33.13% 0.0218 -0.1514)
OKLCHoklch(33.13% 0.153 278.2)
XYZxyz(5.4599, 3.1645, 21.0877)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2181 #788121
analogous
#214881 #2A2181 #5A2181
triadic
#2A2181 #812A21 #21812A
tetradic
#2A2181 #812148 #788121 #21815A
square
#2A2181 #812148 #788121 #21815A
split-complementary
#2A2181 #815A21 #488121
monochromatic
#0A0820 #1A1550 #2A2181 #3A2DB2 #584BD1

Accessibility & contrast

On white

12.86
#2A2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2A2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2181
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2181#FFFFFF#000000##FFFFFF
##2A21811.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a2181;
/* rgb */ color: rgb(42, 33, 129);
/* oklch */ color: oklch(33.1% 0.153 278.2);
Tailwind
colors: {
  custom: {
    50: '#705ea7',
    500: '#2a2181',
    950: '#000000',
  },
}
SCSS
$custom: #2a2181;
$custom-light: #705ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2181",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 245.625,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33127,
    "c": 0.153,
    "h": 278.2
  },
  "luminance": 0.03165
}

Semantic roles & 50–950 ramp

primary
#2A2181
secondary
#AAB44A
accent
#E245D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A2181

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

Preview Lab → · Contrast checker → · Palette generator →

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