#2A184F#2A184F

#2A184F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.096 H 294.0°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#2A184F
RGBrgb(42, 24, 79)
HSLhsl(260, 53%, 20%)
HSVhsv(260, 70%, 31%)
CMYKcmyk(46.8%, 69.6%, 0%, 69%)
CIE-LABlab(13.89, 23.60, -30.76)
CIE-LCHlch(13.89, 38.77, 307.50°)
OKLaboklab(26.78% 0.0391 -0.0878)
OKLCHoklch(26.78% 0.096 294)
XYZxyz(2.6924, 1.7100, 7.5838)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A184F #3D4F18
analogous
#18224F #2A184F #45184F
triadic
#2A184F #4F2A18 #184F2A
tetradic
#2A184F #4F1822 #3D4F18 #184F45
square
#2A184F #4F1822 #3D4F18 #184F45
split-complementary
#2A184F #4F4518 #224F18
monochromatic
#0C0717 #110A20 #2A184F #43267E #5C35AD

Accessibility & contrast

On white

15.65
#2A184F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A184F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A184F
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A184F#FFFFFF#000000##FFFFFF
##2A184F1.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#202531
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a184f;
/* rgb */ color: rgb(42, 24, 79);
/* oklch */ color: oklch(26.8% 0.096 294.0);
Tailwind
colors: {
  custom: {
    50: '#675681',
    500: '#2a184f',
    950: '#000000',
  },
}
SCSS
$custom: #2a184f;
$custom-light: #675681;
$custom-dark: #000000;
JSON
{
  "hex": "#2a184f",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 79
  },
  "hsl": {
    "h": 259.636,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26778,
    "c": 0.09611,
    "h": 294
  },
  "luminance": 0.0171
}

Semantic roles & 50–950 ramp

primary
#2A184F
secondary
#6E863D
accent
#DD4BAD
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A184F

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

Preview Lab → · Contrast checker → · Palette generator →

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