#2A1F99#2A1F99

#2A1F99 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.185 H 275.4°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#2A1F99
RGBrgb(42, 31, 153)
HSLhsl(245, 66%, 36%)
HSVhsv(245, 80%, 60%)
CMYKcmyk(72.5%, 79.7%, 0%, 40%)
CIE-LABlab(22.90, 43.81, -63.76)
CIE-LCHlch(22.90, 77.36, 304.49°)
OKLaboklab(35.46% 0.0173 -0.1844)
OKLCHoklch(35.46% 0.185 275.4)
XYZxyz(7.1927, 3.7714, 30.4797)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1F99 #8E991F
analogous
#1F5199 #2A1F99 #671F99
triadic
#2A1F99 #992A1F #1F992A
tetradic
#2A1F99 #991F51 #8E991F #1F9967
square
#2A1F99 #991F51 #8E991F #1F9967
split-complementary
#2A1F99 #99671F #51991F
monochromatic
#0E0A33 #1C1566 #2A1F99 #3829CC #6256DD

Accessibility & contrast

On white

11.97
#2A1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A1F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1F99
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1F99#FFFFFF#000000##FFFFFF
##2A1F991.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a1f99;
/* rgb */ color: rgb(42, 31, 153);
/* oklch */ color: oklch(35.5% 0.185 275.4);
Tailwind
colors: {
  custom: {
    50: '#765eb8',
    500: '#2a1f99',
    950: '#000000',
  },
}
SCSS
$custom: #2a1f99;
$custom-light: #765eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1f99",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 245.41,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35459,
    "c": 0.18517,
    "h": 275.4
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#2A1F99
secondary
#B6C054
accent
#E93FDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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