#2D198D#2D198D

#2D198D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.175 H 279.1°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#2D198D
RGBrgb(45, 25, 141)
HSLhsl(250, 70%, 33%)
HSVhsv(250, 82%, 55%)
CMYKcmyk(68.1%, 82.3%, 0%, 44.7%)
CIE-LABlab(20.73, 43.33, -59.91)
CIE-LCHlch(20.73, 73.93, 305.87°)
OKLaboklab(33.61% 0.0278 -0.173)
OKLCHoklch(33.61% 0.175 279.1)
XYZxyz(6.2360, 3.1757, 25.4785)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D198D #798D19
analogous
#193F8D #2D198D #67198D
triadic
#2D198D #8D2D19 #198D2D
tetradic
#2D198D #8D193F #798D19 #198D67
square
#2D198D #8D193F #798D19 #198D67
split-complementary
#2D198D #8D6719 #3F8D19
monochromatic
#0C0725 #1C1059 #2D198D #3E22C1 #5D43DE

Accessibility & contrast

On white

12.84
#2D198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2D198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D198D
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D198D#FFFFFF#000000##FFFFFF
##2D198D1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d198d;
/* rgb */ color: rgb(45, 25, 141);
/* oklch */ color: oklch(33.6% 0.175 279.1);
Tailwind
colors: {
  custom: {
    50: '#755ab0',
    500: '#2d198d',
    950: '#000000',
  },
}
SCSS
$custom: #2d198d;
$custom-light: #755ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d198d",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 250.345,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33611,
    "c": 0.17523,
    "h": 279.1
  },
  "luminance": 0.03176
}

Semantic roles & 50–950 ramp

primary
#2D198D
secondary
#A9BF43
accent
#ED3BCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D198D

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

Preview Lab → · Contrast checker → · Palette generator →

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