#2A1FA5#2A1FA5

#2A1FA5 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.199 H 274.1°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#2A1FA5
RGBrgb(42, 31, 165)
HSLhsl(245, 68%, 38%)
HSVhsv(245, 81%, 65%)
CMYKcmyk(74.5%, 81.2%, 0%, 35.3%)
CIE-LABlab(24.28, 47.60, -68.80)
CIE-LCHlch(24.28, 83.66, 304.68°)
OKLaboklab(36.83% 0.0142 -0.199)
OKLCHoklch(36.83% 0.199 274.1)
XYZxyz(8.2341, 4.1880, 35.9644)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1FA5 #9AA51F
analogous
#1F57A5 #2A1FA5 #6D1FA5
triadic
#2A1FA5 #A52A1F #1FA52A
tetradic
#2A1FA5 #A51F57 #9AA51F #1FA56D
square
#2A1FA5 #A51F57 #9AA51F #1FA56D
split-complementary
#2A1FA5 #A56D1F #57A51F
monochromatic
#100C3E #1D1571 #2A1FA5 #382AD7 #685EE1

Accessibility & contrast

On white

11.43
#2A1FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A1FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1FA5
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1FA5#FFFFFF#000000##FFFFFF
##2A1FA51.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A9
Deuteranopia (green-blind)
#0033A3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a1fa5;
/* rgb */ color: rgb(42, 31, 165);
/* oklch */ color: oklch(36.8% 0.199 274.1);
Tailwind
colors: {
  custom: {
    50: '#795fc1',
    500: '#2a1fa5',
    950: '#000000',
  },
}
SCSS
$custom: #2a1fa5;
$custom-light: #795fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1fa5",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 244.925,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36826,
    "c": 0.19949,
    "h": 274.1
  },
  "luminance": 0.04189
}

Semantic roles & 50–950 ramp

primary
#2A1FA5
secondary
#BCC55B
accent
#EB3DDD
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2A1FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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