#2A1758#2A1758

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

Color values

HEX#2A1758
RGBrgb(42, 23, 88)
HSLhsl(258, 59%, 22%)
HSVhsv(258, 74%, 35%)
CMYKcmyk(52.3%, 73.9%, 0%, 65.5%)
CIE-LABlab(14.45, 27.14, -35.95)
CIE-LCHlch(14.45, 45.04, 307.05°)
OKLaboklab(27.44% 0.039 -0.1031)
OKLCHoklch(27.44% 0.11 290.7)
XYZxyz(3.0222, 1.8095, 9.4207)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1758 #455817
analogous
#172558 #2A1758 #4B1758
triadic
#2A1758 #582A17 #17582A
tetradic
#2A1758 #581725 #455817 #17584B
square
#2A1758 #581725 #455817 #17584B
split-complementary
#2A1758 #584B17 #255817
monochromatic
#0C0618 #130A27 #2A1758 #412489 #5830B9

Accessibility & contrast

On white

15.42
#2A1758 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2A1758 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1758
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1758#FFFFFF#000000##FFFFFF
##2A17581.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#1B2735
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1758;
/* rgb */ color: rgb(42, 23, 88);
/* oklch */ color: oklch(27.4% 0.110 290.7);
Tailwind
colors: {
  custom: {
    50: '#695588',
    500: '#2a1758',
    950: '#000000',
  },
}
SCSS
$custom: #2a1758;
$custom-light: #695588;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1758",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 88
  },
  "hsl": {
    "h": 257.538,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27438,
    "c": 0.11018,
    "h": 290.7
  },
  "luminance": 0.0181
}

Semantic roles & 50–950 ramp

primary
#2A1758
secondary
#778F3C
accent
#E246B4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2A1758

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

Preview Lab → · Contrast checker → · Palette generator →

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