#2A1E9F#2A1E9F

#2A1E9F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.0% C 0.193 H 274.8°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#2A1E9F
RGBrgb(42, 30, 159)
HSLhsl(246, 68%, 37%)
HSVhsv(246, 81%, 62%)
CMYKcmyk(73.6%, 81.1%, 0%, 37.6%)
CIE-LABlab(23.42, 46.22, -66.58)
CIE-LCHlch(23.42, 81.05, 304.77°)
OKLaboklab(36.02% 0.0162 -0.1925)
OKLCHoklch(36.02% 0.193 274.8)
XYZxyz(7.6751, 3.9232, 33.1469)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E9F #939F1E
analogous
#1E539F #2A1E9F #6A1E9F
triadic
#2A1E9F #9F2A1E #1E9F2A
tetradic
#2A1E9F #9F1E53 #939F1E #1E9F6A
square
#2A1E9F #9F1E53 #939F1E #1E9F6A
split-complementary
#2A1E9F #9F6A1E #539F1E
monochromatic
#0F0B38 #1C146C #2A1E9F #3828D2 #6558DF

Accessibility & contrast

On white

11.77
#2A1E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A1E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E9F
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E9F#FFFFFF#000000##FFFFFF
##2A1E9F1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a1e9f;
/* rgb */ color: rgb(42, 30, 159);
/* oklch */ color: oklch(36.0% 0.193 274.8);
Tailwind
colors: {
  custom: {
    50: '#775ebd',
    500: '#2a1e9f',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e9f;
$custom-light: #775ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e9f",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 245.581,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3602,
    "c": 0.19322,
    "h": 274.8
  },
  "luminance": 0.03924
}

Semantic roles & 50–950 ramp

primary
#2A1E9F
secondary
#B9C356
accent
#EB3DDB
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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