#2A1F9B#2A1F9B

#2A1F9B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.188 H 275.1°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#2A1F9B
RGBrgb(42, 31, 155)
HSLhsl(245, 67%, 36%)
HSVhsv(245, 80%, 61%)
CMYKcmyk(72.9%, 80%, 0%, 39.2%)
CIE-LABlab(23.13, 44.45, -64.61)
CIE-LCHlch(23.13, 78.43, 304.53°)
OKLaboklab(35.69% 0.0168 -0.1868)
OKLCHoklch(35.69% 0.188 275.1)
XYZxyz(7.3593, 3.8381, 31.3570)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1F9B #909B1F
analogous
#1F529B #2A1F9B #681F9B
triadic
#2A1F9B #9B2A1F #1F9B2A
tetradic
#2A1F9B #9B1F52 #909B1F #1F9B68
square
#2A1F9B #9B1F52 #909B1F #1F9B68
split-complementary
#2A1F9B #9B681F #529B1F
monochromatic
#0E0B35 #1C1568 #2A1F9B #3829CE #6357DD

Accessibility & contrast

On white

11.88
#2A1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A1F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1F9B
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1F9B#FFFFFF#000000##FFFFFF
##2A1F9B1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a1f9b;
/* rgb */ color: rgb(42, 31, 155);
/* oklch */ color: oklch(35.7% 0.188 275.1);
Tailwind
colors: {
  custom: {
    50: '#765eba',
    500: '#2a1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #2a1f9b;
$custom-light: #765eba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1f9b",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 245.323,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35685,
    "c": 0.18758,
    "h": 275.1
  },
  "luminance": 0.03839
}

Semantic roles & 50–950 ramp

primary
#2A1F9B
secondary
#B7C155
accent
#EA3EDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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