#2D186F#2D186F

#2D186F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.139 H 285.6°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#2D186F
RGBrgb(45, 24, 111)
HSLhsl(254, 64%, 26%)
HSVhsv(254, 78%, 44%)
CMYKcmyk(59.5%, 78.4%, 0%, 56.5%)
CIE-LABlab(17.27, 34.45, -46.54)
CIE-LCHlch(17.27, 57.91, 306.51°)
OKLaboklab(30.21% 0.0375 -0.134)
OKLCHoklch(30.21% 0.139 285.6)
XYZxyz(4.2772, 2.3586, 15.2657)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D186F #5A6F18
analogous
#182F6F #2D186F #59186F
triadic
#2D186F #6F2D18 #186F2D
tetradic
#2D186F #6F182F #5A6F18 #186F59
square
#2D186F #6F182F #5A6F18 #186F59
split-complementary
#2D186F #6F5918 #2F6F18
monochromatic
#0A0519 #190D3D #2D186F #4123A1 #572FD2

Accessibility & contrast

On white

14.27
#2D186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2D186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D186F
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D186F#FFFFFF#000000##FFFFFF
##2D186F1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#0C3042
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d186f;
/* rgb */ color: rgb(45, 24, 111);
/* oklch */ color: oklch(30.2% 0.139 285.6);
Tailwind
colors: {
  custom: {
    50: '#6f5799',
    500: '#2d186f',
    950: '#000000',
  },
}
SCSS
$custom: #2d186f;
$custom-light: #6f5799;
$custom-dark: #000000;
JSON
{
  "hex": "#2d186f",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 254.483,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3021,
    "c": 0.13915,
    "h": 285.6
  },
  "luminance": 0.02359
}

Semantic roles & 50–950 ramp

primary
#2D186F
secondary
#8CA53E
accent
#E740BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D186F

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

Preview Lab → · Contrast checker → · Palette generator →

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