#28195F#28195F

#28195F is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.117 H 286.0°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#28195F
RGBrgb(40, 25, 95)
HSLhsl(253, 58%, 24%)
HSVhsv(253, 74%, 37%)
CMYKcmyk(57.9%, 73.7%, 0%, 62.7%)
CIE-LABlab(15.34, 27.82, -39.20)
CIE-LCHlch(15.34, 48.07, 305.36°)
OKLaboklab(28.23% 0.0323 -0.1127)
OKLCHoklch(28.23% 0.117 286)
XYZxyz(3.2876, 1.9724, 11.0317)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28195F #505F19
analogous
#192D5F #28195F #4B195F
triadic
#28195F #5F2819 #195F28
tetradic
#28195F #5F192D #505F19 #195F4B
square
#28195F #5F192D #505F19 #195F4B
split-complementary
#28195F #5F4B19 #2D5F19
monochromatic
#0A0618 #140C2F #28195F #3C268F #5132C0

Accessibility & contrast

On white

15.06
#28195F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28195F
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28195F#FFFFFF#000000##FFFFFF
##28195F1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#112B39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #28195f;
/* rgb */ color: rgb(40, 25, 95);
/* oklch */ color: oklch(28.2% 0.117 286.0);
Tailwind
colors: {
  custom: {
    50: '#69578d',
    500: '#28195f',
    950: '#000000',
  },
}
SCSS
$custom: #28195f;
$custom-light: #69578d;
$custom-dark: #000000;
JSON
{
  "hex": "#28195f",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 95
  },
  "hsl": {
    "h": 252.857,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28226,
    "c": 0.11722,
    "h": 286
  },
  "luminance": 0.01973
}

Semantic roles & 50–950 ramp

primary
#28195F
secondary
#83953F
accent
#E246C0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #28195F

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

Preview Lab → · Contrast checker → · Palette generator →

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