#2D187C#2D187C

#2D187C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.155 H 282.5°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#2D187C
RGBrgb(45, 24, 124)
HSLhsl(253, 68%, 29%)
HSVhsv(253, 81%, 49%)
CMYKcmyk(63.7%, 80.6%, 0%, 51.4%)
CIE-LABlab(18.65, 38.55, -52.63)
CIE-LCHlch(18.65, 65.24, 306.22°)
OKLaboklab(31.6% 0.0337 -0.1518)
OKLCHoklch(31.6% 0.155 282.5)
XYZxyz(5.0458, 2.6660, 19.3136)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D187C #677C18
analogous
#18357C #2D187C #5F187C
triadic
#2D187C #7C2D18 #187C2D
tetradic
#2D187C #7C1835 #677C18 #187C5F
square
#2D187C #7C1835 #677C18 #187C5F
split-complementary
#2D187C #7C5F18 #357C18
monochromatic
#09051A #1A0E49 #2D187C #4022AF #5836D8

Accessibility & contrast

On white

13.70
#2D187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2D187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D187C
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D187C#FFFFFF#000000##FFFFFF
##2D187C1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d187c;
/* rgb */ color: rgb(45, 24, 124);
/* oklch */ color: oklch(31.6% 0.155 282.5);
Tailwind
colors: {
  custom: {
    50: '#7158a3',
    500: '#2d187c',
    950: '#000000',
  },
}
SCSS
$custom: #2d187c;
$custom-light: #7158a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d187c",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 252.6,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31599,
    "c": 0.15547,
    "h": 282.5
  },
  "luminance": 0.02666
}

Semantic roles & 50–950 ramp

primary
#2D187C
secondary
#99B13F
accent
#EA3DC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D187C

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

Preview Lab → · Contrast checker → · Palette generator →

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