#2A1D7E#2A1D7E

#2A1D7E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.153 H 279.4°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#2A1D7E
RGBrgb(42, 29, 126)
HSLhsl(248, 63%, 30%)
HSVhsv(248, 77%, 49%)
CMYKcmyk(66.7%, 77%, 0%, 50.6%)
CIE-LABlab(19.54, 36.10, -52.44)
CIE-LCHlch(19.54, 63.67, 304.55°)
OKLaboklab(32.22% 0.0252 -0.1514)
OKLCHoklch(32.22% 0.153 279.4)
XYZxyz(5.1589, 2.8769, 20.0181)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D7E #717E1D
analogous
#1D407E #2A1D7E #5A1D7E
triadic
#2A1D7E #7E2A1D #1D7E2A
tetradic
#2A1D7E #7E1D40 #717E1D #1D7E5A
square
#2A1D7E #7E1D40 #717E1D #1D7E5A
split-complementary
#2A1D7E #7E5A1D #407E1D
monochromatic
#09061B #19124C #2A1D7E #3B28B0 #5542D3

Accessibility & contrast

On white

13.33
#2A1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2A1D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D7E
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D7E#FFFFFF#000000##FFFFFF
##2A1D7E1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1d7e;
/* rgb */ color: rgb(42, 29, 126);
/* oklch */ color: oklch(32.2% 0.153 279.4);
Tailwind
colors: {
  custom: {
    50: '#705ba4',
    500: '#2a1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d7e;
$custom-light: #705ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d7e",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 248.041,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32219,
    "c": 0.15346,
    "h": 279.4
  },
  "luminance": 0.02877
}

Semantic roles & 50–950 ramp

primary
#2A1D7E
secondary
#A3B145
accent
#E642D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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