#2A1A7B#2A1A7B

#2A1A7B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.153 H 280.5°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#2A1A7B
RGBrgb(42, 26, 123)
HSLhsl(250, 65%, 29%)
HSVhsv(250, 79%, 48%)
CMYKcmyk(65.9%, 78.9%, 0%, 51.8%)
CIE-LABlab(18.63, 36.80, -52.04)
CIE-LCHlch(18.63, 63.73, 305.27°)
OKLaboklab(31.48% 0.028 -0.1502)
OKLCHoklch(31.48% 0.153 280.5)
XYZxyz(4.8983, 2.6607, 18.9905)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A7B #6B7B1A
analogous
#1A3B7B #2A1A7B #5B1A7B
triadic
#2A1A7B #7B2A1A #1A7B2A
tetradic
#2A1A7B #7B1A3B #6B7B1A #1A7B5B
square
#2A1A7B #7B1A3B #6B7B1A #1A7B5B
split-complementary
#2A1A7B #7B5B1A #3B7B1A
monochromatic
#090519 #190F48 #2A1A7B #3B25AE #543AD5

Accessibility & contrast

On white

13.71
#2A1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2A1A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A7B
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A7B#FFFFFF#000000##FFFFFF
##2A1A7B1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a1a7b;
/* rgb */ color: rgb(42, 26, 123);
/* oklch */ color: oklch(31.5% 0.153 280.5);
Tailwind
colors: {
  custom: {
    50: '#6f59a2',
    500: '#2a1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a7b;
$custom-light: #6f59a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a7b",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 249.897,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31479,
    "c": 0.15275,
    "h": 280.5
  },
  "luminance": 0.02661
}

Semantic roles & 50–950 ramp

primary
#2A1A7B
secondary
#9DAF42
accent
#E840CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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