#28195D#28195D

#28195D is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.114 H 286.6°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#28195D
RGBrgb(40, 25, 93)
HSLhsl(253, 58%, 23%)
HSVhsv(253, 73%, 36%)
CMYKcmyk(57%, 73.1%, 0%, 63.5%)
CIE-LABlab(15.15, 27.15, -38.18)
CIE-LCHlch(15.15, 46.85, 305.41°)
OKLaboklab(28.03% 0.0327 -0.1097)
OKLCHoklch(28.03% 0.114 286.6)
XYZxyz(3.1979, 1.9365, 10.5591)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28195D #4E5D19
analogous
#192C5D #28195D #4A195D
triadic
#28195D #5D2819 #195D28
tetradic
#28195D #5D192C #4E5D19 #195D4A
square
#28195D #5D192C #4E5D19 #195D4A
split-complementary
#28195D #5D4A19 #2C5D19
monochromatic
#0A0618 #130C2D #28195D #3D268D #5133BD

Accessibility & contrast

On white

15.14
#28195D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#28195D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28195D
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28195D#FFFFFF#000000##FFFFFF
##28195D1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#132A38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #28195d;
/* rgb */ color: rgb(40, 25, 93);
/* oklch */ color: oklch(28.0% 0.114 286.6);
Tailwind
colors: {
  custom: {
    50: '#68578c',
    500: '#28195d',
    950: '#000000',
  },
}
SCSS
$custom: #28195d;
$custom-light: #68578c;
$custom-dark: #000000;
JSON
{
  "hex": "#28195d",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 93
  },
  "hsl": {
    "h": 253.235,
    "s": 57.627,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2803,
    "c": 0.11445,
    "h": 286.6
  },
  "luminance": 0.01937
}

Semantic roles & 50–950 ramp

primary
#28195D
secondary
#81933F
accent
#E147BF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #28195D

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

Preview Lab → · Contrast checker → · Palette generator →

#28195D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva