#2A185C#2A185C

#2A185C is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.114 H 289.0°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#2A185C
RGBrgb(42, 24, 92)
HSLhsl(256, 59%, 23%)
HSVhsv(256, 74%, 36%)
CMYKcmyk(54.3%, 73.9%, 0%, 63.9%)
CIE-LABlab(15.05, 27.82, -37.66)
CIE-LCHlch(15.05, 46.82, 306.45°)
OKLaboklab(27.98% 0.0371 -0.1081)
OKLCHoklch(27.98% 0.114 289)
XYZxyz(3.2127, 1.9181, 10.3241)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A185C #4A5C18
analogous
#18285C #2A185C #4C185C
triadic
#2A185C #5C2A18 #185C2A
tetradic
#2A185C #5C1828 #4A5C18 #185C4C
square
#2A185C #5C1828 #4A5C18 #185C4C
split-complementary
#2A185C #5C4C18 #285C18
monochromatic
#0B0618 #140B2B #2A185C #40258D #5631BD

Accessibility & contrast

On white

15.18
#2A185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2A185C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A185C
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A185C#FFFFFF#000000##FFFFFF
##2A185C1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#182938
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a185c;
/* rgb */ color: rgb(42, 24, 92);
/* oklch */ color: oklch(28.0% 0.114 289.0);
Tailwind
colors: {
  custom: {
    50: '#69568b',
    500: '#2a185c',
    950: '#000000',
  },
}
SCSS
$custom: #2a185c;
$custom-light: #69568b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a185c",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 255.882,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27982,
    "c": 0.11429,
    "h": 289
  },
  "luminance": 0.01918
}

Semantic roles & 50–950 ramp

primary
#2A185C
secondary
#7C933D
accent
#E246B9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A185C

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

Preview Lab → · Contrast checker → · Palette generator →

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