#2A1857#2A1857

#2A1857 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.107 H 290.7°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#2A1857
RGBrgb(42, 24, 87)
HSLhsl(257, 57%, 22%)
HSVhsv(257, 72%, 34%)
CMYKcmyk(51.7%, 72.4%, 0%, 65.9%)
CIE-LABlab(14.59, 26.19, -35.06)
CIE-LCHlch(14.59, 43.76, 306.76°)
OKLaboklab(27.51% 0.038 -0.1004)
OKLCHoklch(27.51% 0.107 290.7)
XYZxyz(3.0013, 1.8335, 9.2107)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1857 #455718
analogous
#182657 #2A1857 #4A1857
triadic
#2A1857 #572A18 #18572A
tetradic
#2A1857 #571826 #455718 #18574A
square
#2A1857 #571826 #455718 #18574A
split-complementary
#2A1857 #574A18 #265718
monochromatic
#0C0718 #130B27 #2A1857 #412587 #5832B7

Accessibility & contrast

On white

15.36
#2A1857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2A1857 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1857
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1857#FFFFFF#000000##FFFFFF
##2A18571.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#1C2835
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1857;
/* rgb */ color: rgb(42, 24, 87);
/* oklch */ color: oklch(27.5% 0.107 290.7);
Tailwind
colors: {
  custom: {
    50: '#685687',
    500: '#2a1857',
    950: '#000000',
  },
}
SCSS
$custom: #2a1857;
$custom-light: #685687;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1857",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 87
  },
  "hsl": {
    "h": 257.143,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27506,
    "c": 0.1074,
    "h": 290.7
  },
  "luminance": 0.01834
}

Semantic roles & 50–950 ramp

primary
#2A1857
secondary
#778E3D
accent
#E048B5
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2A1857

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

Preview Lab → · Contrast checker → · Palette generator →

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