#2A1A98#2A1A98

#2A1A98 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.188 H 276.0°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#2A1A98
RGBrgb(42, 26, 152)
HSLhsl(248, 71%, 35%)
HSVhsv(248, 83%, 60%)
CMYKcmyk(72.4%, 82.9%, 0%, 40.4%)
CIE-LABlab(21.93, 45.97, -64.75)
CIE-LCHlch(21.93, 79.41, 305.37°)
OKLaboklab(34.75% 0.0196 -0.1871)
OKLCHoklch(34.75% 0.188 276)
XYZxyz(6.9899, 3.4974, 30.0064)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A98 #88981A
analogous
#1A4998 #2A1A98 #691A98
triadic
#2A1A98 #982A1A #1A982A
tetradic
#2A1A98 #981A49 #88981A #1A9869
square
#2A1A98 #981A49 #88981A #1A9869
split-complementary
#2A1A98 #98691A #49981A
monochromatic
#0D082F #1C1164 #2A1A98 #3823CC #5F4CE0

Accessibility & contrast

On white

12.36
#2A1A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A1A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A98
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A98#FFFFFF#000000##FFFFFF
##2A1A981.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9B
Deuteranopia (green-blind)
#002F96
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a1a98;
/* rgb */ color: rgb(42, 26, 152);
/* oklch */ color: oklch(34.8% 0.188 276.0);
Tailwind
colors: {
  custom: {
    50: '#765bb8',
    500: '#2a1a98',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a98;
$custom-light: #765bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a98",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 247.619,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34754,
    "c": 0.18818,
    "h": 276
  },
  "luminance": 0.03498
}

Semantic roles & 50–950 ramp

primary
#2A1A98
secondary
#B3C24B
accent
#EE3AD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1A98

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

Preview Lab → · Contrast checker → · Palette generator →

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