#2A1FA8#2A1FA8

#2A1FA8 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.2% C 0.203 H 273.8°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2A1FA8
RGBrgb(42, 31, 168)
HSLhsl(245, 69%, 39%)
HSVhsv(245, 82%, 66%)
CMYKcmyk(75%, 81.5%, 0%, 34.1%)
CIE-LABlab(24.63, 48.54, -70.03)
CIE-LCHlch(24.63, 85.21, 304.73°)
OKLaboklab(37.17% 0.0134 -0.2026)
OKLCHoklch(37.17% 0.203 273.8)
XYZxyz(8.5104, 4.2985, 37.4194)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1FA8 #9DA81F
analogous
#1F58A8 #2A1FA8 #6F1FA8
triadic
#2A1FA8 #A82A1F #1FA82A
tetradic
#2A1FA8 #A81F58 #9DA81F #1FA86F
square
#2A1FA8 #A81F58 #9DA81F #1FA86F
split-complementary
#2A1FA8 #A86F1F #58A81F
monochromatic
#100C41 #1D1574 #2A1FA8 #3A2CD8 #6A60E2

Accessibility & contrast

On white

11.29
#2A1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1FA8
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1FA8#FFFFFF#000000##FFFFFF
##2A1FA81.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AC
Deuteranopia (green-blind)
#0034A6
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a1fa8;
/* rgb */ color: rgb(42, 31, 168);
/* oklch */ color: oklch(37.2% 0.203 273.8);
Tailwind
colors: {
  custom: {
    50: '#7a5fc3',
    500: '#2a1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2a1fa8;
$custom-light: #7a5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1fa8",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 244.818,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37172,
    "c": 0.20301,
    "h": 273.8
  },
  "luminance": 0.04299
}

Semantic roles & 50–950 ramp

primary
#2A1FA8
secondary
#BEC65D
accent
#EC3CDE
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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