#2A1E98#2A1E98

#2A1E98 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.185 H 275.6°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#2A1E98
RGBrgb(42, 30, 152)
HSLhsl(246, 67%, 36%)
HSVhsv(246, 80%, 60%)
CMYKcmyk(72.4%, 80.3%, 0%, 40.4%)
CIE-LABlab(22.61, 44.01, -63.63)
CIE-LCHlch(22.61, 77.37, 304.67°)
OKLaboklab(35.22% 0.018 -0.184)
OKLCHoklch(35.22% 0.185 275.6)
XYZxyz(7.0848, 3.6871, 30.0380)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E98 #8C981E
analogous
#1E4F98 #2A1E98 #671E98
triadic
#2A1E98 #982A1E #1E982A
tetradic
#2A1E98 #981E4F #8C981E #1E9867
square
#2A1E98 #981E4F #8C981E #1E9867
split-complementary
#2A1E98 #98671E #4F981E
monochromatic
#0E0A32 #1C1465 #2A1E98 #3828CB #6153DD

Accessibility & contrast

On white

12.09
#2A1E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A1E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E98
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E98#FFFFFF#000000##FFFFFF
##2A1E981.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003096
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a1e98;
/* rgb */ color: rgb(42, 30, 152);
/* oklch */ color: oklch(35.2% 0.185 275.6);
Tailwind
colors: {
  custom: {
    50: '#765db8',
    500: '#2a1e98',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e98;
$custom-light: #765db8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e98",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 245.902,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35222,
    "c": 0.18485,
    "h": 275.6
  },
  "luminance": 0.03688
}

Semantic roles & 50–950 ramp

primary
#2A1E98
secondary
#B5C051
accent
#EA3ED9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1E98

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

Preview Lab → · Contrast checker → · Palette generator →

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