#2A1F95#2A1F95

#2A1F95 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.180 H 275.8°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2A1F95
RGBrgb(42, 31, 149)
HSLhsl(246, 66%, 35%)
HSVhsv(246, 79%, 58%)
CMYKcmyk(71.8%, 79.2%, 0%, 41.6%)
CIE-LABlab(22.45, 42.53, -62.05)
CIE-LCHlch(22.45, 75.22, 304.43°)
OKLaboklab(35.01% 0.0183 -0.1794)
OKLCHoklch(35.01% 0.18 275.8)
XYZxyz(6.8679, 3.6415, 28.7689)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1F95 #8A951F
analogous
#1F4F95 #2A1F95 #651F95
triadic
#2A1F95 #952A1F #1F952A
tetradic
#2A1F95 #951F4F #8A951F #1F9565
square
#2A1F95 #951F4F #8A951F #1F9565
split-complementary
#2A1F95 #95651F #4F951F
monochromatic
#0D0A30 #1C1462 #2A1F95 #382AC8 #6053DB

Accessibility & contrast

On white

12.15
#2A1F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A1F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1F95
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1F95#FFFFFF#000000##FFFFFF
##2A1F951.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a1f95;
/* rgb */ color: rgb(42, 31, 149);
/* oklch */ color: oklch(35.0% 0.180 275.8);
Tailwind
colors: {
  custom: {
    50: '#755eb5',
    500: '#2a1f95',
    950: '#000000',
  },
}
SCSS
$custom: #2a1f95;
$custom-light: #755eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1f95",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 245.593,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3501,
    "c": 0.18031,
    "h": 275.8
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#2A1F95
secondary
#B4BF51
accent
#E93FD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1F95

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

Preview Lab → · Contrast checker → · Palette generator →

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