#2A1E8F#2A1E8F

#2A1E8F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.174 H 276.7°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#2A1E8F
RGBrgb(42, 30, 143)
HSLhsl(246, 65%, 34%)
HSVhsv(246, 79%, 56%)
CMYKcmyk(70.6%, 79%, 0%, 43.9%)
CIE-LABlab(21.59, 41.12, -59.74)
CIE-LCHlch(21.59, 72.53, 304.54°)
OKLaboklab(34.21% 0.0203 -0.1727)
OKLCHoklch(34.21% 0.174 276.7)
XYZxyz(6.3754, 3.4034, 26.3022)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E8F #838F1E
analogous
#1E4B8F #2A1E8F #631E8F
triadic
#2A1E8F #8F2A1E #1E8F2A
tetradic
#2A1E8F #8F1E4B #838F1E #1E8F63
square
#2A1E8F #8F1E4B #838F1E #1E8F63
split-complementary
#2A1E8F #8F631E #4B8F1E
monochromatic
#0C092A #1B135C #2A1E8F #3929C2 #5D4EDA

Accessibility & contrast

On white

12.49
#2A1E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2A1E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E8F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E8F#FFFFFF#000000##FFFFFF
##2A1E8F1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a1e8f;
/* rgb */ color: rgb(42, 30, 143);
/* oklch */ color: oklch(34.2% 0.174 276.7);
Tailwind
colors: {
  custom: {
    50: '#745db1',
    500: '#2a1e8f',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e8f;
$custom-light: #745db1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e8f",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 246.372,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34212,
    "c": 0.17386,
    "h": 276.7
  },
  "luminance": 0.03404
}

Semantic roles & 50–950 ramp

primary
#2A1E8F
secondary
#B1BC4C
accent
#E840D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A1E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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