#2A1F89#2A1F89

#2A1F89 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.165 H 277.4°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#2A1F89
RGBrgb(42, 31, 137)
HSLhsl(246, 63%, 33%)
HSVhsv(246, 77%, 54%)
CMYKcmyk(69.3%, 77.4%, 0%, 46.3%)
CIE-LABlab(21.12, 38.61, -56.77)
CIE-LCHlch(21.12, 68.66, 304.22°)
OKLaboklab(33.69% 0.0213 -0.164)
OKLCHoklch(33.69% 0.165 277.4)
XYZxyz(5.9587, 3.2778, 23.9807)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1F89 #7E891F
analogous
#1F4989 #2A1F89 #5F1F89
triadic
#2A1F89 #892A1F #1F892A
tetradic
#2A1F89 #891F49 #7E891F #1F895F
square
#2A1F89 #891F49 #7E891F #1F895F
split-complementary
#2A1F89 #895F1F #49891F
monochromatic
#0B0825 #1B1457 #2A1F89 #392ABB #5A4CD6

Accessibility & contrast

On white

12.68
#2A1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2A1F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1F89
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1F89#FFFFFF#000000##FFFFFF
##2A1F891.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#002E87
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1f89;
/* rgb */ color: rgb(42, 31, 137);
/* oklch */ color: oklch(33.7% 0.165 277.4);
Tailwind
colors: {
  custom: {
    50: '#725dad',
    500: '#2a1f89',
    950: '#000000',
  },
}
SCSS
$custom: #2a1f89;
$custom-light: #725dad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1f89",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 246.226,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33687,
    "c": 0.1654,
    "h": 277.4
  },
  "luminance": 0.03278
}

Semantic roles & 50–950 ramp

primary
#2A1F89
secondary
#AEB94B
accent
#E642D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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