#2A1F92#2A1F92

#2A1F92 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.177 H 276.2°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#2A1F92
RGBrgb(42, 31, 146)
HSLhsl(246, 65%, 35%)
HSVhsv(246, 79%, 57%)
CMYKcmyk(71.2%, 78.8%, 0%, 42.7%)
CIE-LABlab(22.11, 41.56, -60.75)
CIE-LCHlch(22.11, 73.60, 304.38°)
OKLaboklab(34.68% 0.0191 -0.1756)
OKLCHoklch(34.68% 0.177 276.2)
XYZxyz(6.6314, 3.5469, 27.5237)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1F92 #87921F
analogous
#1F4E92 #2A1F92 #641F92
triadic
#2A1F92 #922A1F #1F922A
tetradic
#2A1F92 #921F4E #87921F #1F9264
square
#2A1F92 #921F4E #87921F #1F9264
split-complementary
#2A1F92 #92641F #4E921F
monochromatic
#0D0A2D #1B1460 #2A1F92 #392AC4 #5E51DA

Accessibility & contrast

On white

12.28
#2A1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A1F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1F92
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1F92#FFFFFF#000000##FFFFFF
##2A1F921.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#003090
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a1f92;
/* rgb */ color: rgb(42, 31, 146);
/* oklch */ color: oklch(34.7% 0.177 276.2);
Tailwind
colors: {
  custom: {
    50: '#745db3',
    500: '#2a1f92',
    950: '#000000',
  },
}
SCSS
$custom: #2a1f92;
$custom-light: #745db3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1f92",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 245.739,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34676,
    "c": 0.17662,
    "h": 276.2
  },
  "luminance": 0.03548
}

Semantic roles & 50–950 ramp

primary
#2A1F92
secondary
#B3BD50
accent
#E840D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1F92

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

Preview Lab → · Contrast checker → · Palette generator →

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