#2A1FB3#2A1FB3

#2A1FB3 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.5% C 0.216 H 272.8°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#2A1FB3
RGBrgb(42, 31, 179)
HSLhsl(244, 70%, 41%)
HSVhsv(244, 83%, 70%)
CMYKcmyk(76.5%, 82.7%, 0%, 29.8%)
CIE-LABlab(25.94, 51.91, -74.48)
CIE-LCHlch(25.94, 90.78, 304.88°)
OKLaboklab(38.45% 0.0106 -0.2154)
OKLCHoklch(38.45% 0.216 272.8)
XYZxyz(9.5788, 4.7259, 43.0464)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1FB3 #A8B31F
analogous
#1F5EB3 #2A1FB3 #741FB3
triadic
#2A1FB3 #B32A1F #1FB32A
tetradic
#2A1FB3 #B31F5E #A8B31F #1FB374
square
#2A1FB3 #B31F5E #A8B31F #1FB374
split-complementary
#2A1FB3 #B3741F #5EB31F
monochromatic
#120D4B #1E167F #2A1FB3 #4033DC #7168E5

Accessibility & contrast

On white

10.79
#2A1FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2A1FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1FB3
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1FB3#FFFFFF#000000##FFFFFF
##2A1FB31.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a1fb3;
/* rgb */ color: rgb(42, 31, 179);
/* oklch */ color: oklch(38.5% 0.216 272.8);
Tailwind
colors: {
  custom: {
    50: '#7c60cb',
    500: '#2a1fb3',
    950: '#000000',
  },
}
SCSS
$custom: #2a1fb3;
$custom-light: #7c60cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1fb3",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 244.459,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38452,
    "c": 0.21571,
    "h": 272.8
  },
  "luminance": 0.04727
}

Semantic roles & 50–950 ramp

primary
#2A1FB3
secondary
#C3CA64
accent
#ED3BE0
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #2A1FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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