#2A1EAF#2A1EAF

#2A1EAF is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.9% C 0.212 H 273.2°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#2A1EAF
RGBrgb(42, 30, 175)
HSLhsl(245, 71%, 40%)
HSVhsv(245, 83%, 69%)
CMYKcmyk(76%, 82.9%, 0%, 31.4%)
CIE-LABlab(25.31, 51.15, -73.13)
CIE-LCHlch(25.31, 89.25, 304.97°)
OKLaboklab(37.88% 0.0119 -0.2115)
OKLCHoklch(37.88% 0.212 273.2)
XYZxyz(9.1544, 4.5150, 40.9381)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1EAF #A3AF1E
analogous
#1E5AAF #2A1EAF #731EAF
triadic
#2A1EAF #AF2A1E #1EAF2A
tetradic
#2A1EAF #AF1E5A #A3AF1E #1EAF73
square
#2A1EAF #AF1E5A #A3AF1E #1EAF73
split-complementary
#2A1EAF #AF731E #5AAF1E
monochromatic
#110C47 #1D157B #2A1EAF #3D2FDB #6E63E4

Accessibility & contrast

On white

11.03
#2A1EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A1EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1EAF
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1EAF#FFFFFF#000000##FFFFFF
##2A1EAF1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B3
Deuteranopia (green-blind)
#0035AD
Tritanopia (blue-blind)
#004D68
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a1eaf;
/* rgb */ color: rgb(42, 30, 175);
/* oklch */ color: oklch(37.9% 0.212 273.2);
Tailwind
colors: {
  custom: {
    50: '#7b5fc8',
    500: '#2a1eaf',
    950: '#000000',
  },
}
SCSS
$custom: #2a1eaf;
$custom-light: #7b5fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1eaf",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 175
  },
  "hsl": {
    "h": 244.966,
    "s": 70.732,
    "l": 40.196
  },
  "oklch": {
    "l": 0.37877,
    "c": 0.21188,
    "h": 273.2
  },
  "luminance": 0.04516
}

Semantic roles & 50–950 ramp

primary
#2A1EAF
secondary
#C0C960
accent
#ED3ADF
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A1EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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