#2D185E#2D185E

#2D185E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.117 H 290.8°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#2D185E
RGBrgb(45, 24, 94)
HSLhsl(258, 59%, 23%)
HSVhsv(258, 74%, 37%)
CMYKcmyk(52.1%, 74.5%, 0%, 63.1%)
CIE-LABlab(15.59, 29.05, -38.11)
CIE-LCHlch(15.59, 47.92, 307.32°)
OKLaboklab(28.51% 0.0416 -0.1093)
OKLCHoklch(28.51% 0.117 290.8)
XYZxyz(3.4286, 2.0192, 10.7966)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D185E #495E18
analogous
#18265E #2D185E #50185E
triadic
#2D185E #5E2D18 #185E2D
tetradic
#2D185E #5E1826 #495E18 #185E50
square
#2D185E #5E1826 #495E18 #185E50
split-complementary
#2D185E #5E5018 #265E18
monochromatic
#0C0618 #160C2D #2D185E #44248F #5C31C0

Accessibility & contrast

On white

14.96
#2D185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2D185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D185E
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D185E#FFFFFF#000000##FFFFFF
##2D185E1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#00255D
Tritanopia (blue-blind)
#1D2A39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d185e;
/* rgb */ color: rgb(45, 24, 94);
/* oklch */ color: oklch(28.5% 0.117 290.8);
Tailwind
colors: {
  custom: {
    50: '#6b578c',
    500: '#2d185e',
    950: '#000000',
  },
}
SCSS
$custom: #2d185e;
$custom-light: #6b578c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d185e",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 258,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28506,
    "c": 0.11694,
    "h": 290.8
  },
  "luminance": 0.02019
}

Semantic roles & 50–950 ramp

primary
#2D185E
secondary
#7A943D
accent
#E345B3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D185E

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

Preview Lab → · Contrast checker → · Palette generator →

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