#2A1EB3#2A1EB3

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

Color values

HEX#2A1EB3
RGBrgb(42, 30, 179)
HSLhsl(245, 71%, 41%)
HSVhsv(245, 83%, 70%)
CMYKcmyk(76.5%, 83.2%, 0%, 29.8%)
CIE-LABlab(25.79, 52.36, -74.73)
CIE-LCHlch(25.79, 91.25, 305.02°)
OKLaboklab(38.35% 0.0109 -0.2162)
OKLCHoklch(38.35% 0.216 272.9)
XYZxyz(9.5531, 4.6744, 43.0379)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1EB3 #A7B31E
analogous
#1E5CB3 #2A1EB3 #741EB3
triadic
#2A1EB3 #B32A1E #1EB32A
tetradic
#2A1EB3 #B31E5C #A7B31E #1EB374
square
#2A1EB3 #B31E5C #A7B31E #1EB374
split-complementary
#2A1EB3 #B3741E #5CB31E
monochromatic
#110C4A #1E157F #2A1EB3 #3F32DD #7066E5

Accessibility & contrast

On white

10.85
#2A1EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2A1EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1EB3
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1EB3#FFFFFF#000000##FFFFFF
##2A1EB31.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1eb3;
/* rgb */ color: rgb(42, 30, 179);
/* oklch */ color: oklch(38.3% 0.216 272.9);
Tailwind
colors: {
  custom: {
    50: '#7c5fcb',
    500: '#2a1eb3',
    950: '#000000',
  },
}
SCSS
$custom: #2a1eb3;
$custom-light: #7c5fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1eb3",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 179
  },
  "hsl": {
    "h": 244.832,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38347,
    "c": 0.21644,
    "h": 272.9
  },
  "luminance": 0.04675
}

Semantic roles & 50–950 ramp

primary
#2A1EB3
secondary
#C2CB62
accent
#EE3AE0
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2A1EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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