#2D186E#2D186E

#2D186E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.138 H 285.9°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#2D186E
RGBrgb(45, 24, 110)
HSLhsl(255, 64%, 26%)
HSVhsv(255, 78%, 43%)
CMYKcmyk(59.1%, 78.2%, 0%, 56.9%)
CIE-LABlab(17.16, 34.14, -46.06)
CIE-LCHlch(17.16, 57.33, 306.54°)
OKLaboklab(30.11% 0.0377 -0.1326)
OKLCHoklch(30.11% 0.138 285.9)
XYZxyz(4.2224, 2.3367, 14.9774)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D186E #596E18
analogous
#182E6E #2D186E #58186E
triadic
#2D186E #6E2D18 #186E2D
tetradic
#2D186E #6E182E #596E18 #186E58
square
#2D186E #6E182E #596E18 #186E58
split-complementary
#2D186E #6E5818 #2E6E18
monochromatic
#0A0519 #180D3C #2D186E #4223A0 #572FD2

Accessibility & contrast

On white

14.31
#2D186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D186E
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D186E#FFFFFF#000000##FFFFFF
##2D186E1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#0E3042
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d186e;
/* rgb */ color: rgb(45, 24, 110);
/* oklch */ color: oklch(30.1% 0.138 285.9);
Tailwind
colors: {
  custom: {
    50: '#6e5798',
    500: '#2d186e',
    950: '#000000',
  },
}
SCSS
$custom: #2d186e;
$custom-light: #6e5798;
$custom-dark: #000000;
JSON
{
  "hex": "#2d186e",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 254.651,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30106,
    "c": 0.13786,
    "h": 285.9
  },
  "luminance": 0.02337
}

Semantic roles & 50–950 ramp

primary
#2D186E
secondary
#8BA43E
accent
#E741BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D186E

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

Preview Lab → · Contrast checker → · Palette generator →

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