#28074E#28074E

#28074E is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.117 H 297.6°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#28074E
RGBrgb(40, 7, 78)
HSLhsl(268, 84%, 17%)
HSVhsv(268, 91%, 31%)
CMYKcmyk(48.7%, 91%, 0%, 69.4%)
CIE-LABlab(10.21, 32.20, -36.09)
CIE-LCHlch(10.21, 48.37, 311.74°)
OKLaboklab(24.08% 0.054 -0.1034)
OKLCHoklch(24.08% 0.117 297.6)
XYZxyz(2.3258, 1.1531, 7.3063)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28074E #2D4E07
analogous
#070A4E #28074E #4C074E
triadic
#28074E #4E2807 #074E28
tetradic
#28074E #4E070A #2D4E07 #074E4C
square
#28074E #4E070A #2D4E07 #074E4C
split-complementary
#28074E #4E4C07 #0A4E07
monochromatic
#0E031C #0E031C #28074E #450C86 #6211BE

Accessibility & contrast

On white

17.06
#28074E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#28074E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28074E
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28074E#FFFFFF#000000##FFFFFF
##28074E1.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C50
Deuteranopia (green-blind)
#001B4D
Tritanopia (blue-blind)
#1E1C2C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #28074e;
/* rgb */ color: rgb(40, 7, 78);
/* oklch */ color: oklch(24.1% 0.117 297.6);
Tailwind
colors: {
  custom: {
    50: '#674c80',
    500: '#28074e',
    950: '#000000',
  },
}
SCSS
$custom: #28074e;
$custom-light: #674c80;
$custom-dark: #000000;
JSON
{
  "hex": "#28074e",
  "rgb": {
    "r": 40,
    "g": 7,
    "b": 78
  },
  "hsl": {
    "h": 267.887,
    "s": 83.529,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24082,
    "c": 0.11665,
    "h": 297.6
  },
  "luminance": 0.01153
}

Semantic roles & 50–950 ramp

primary
#28074E
secondary
#5C8C25
accent
#FA2E9B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06010A
muted
#7A777C

Preview Lab

Preview with #28074E

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

Preview Lab → · Contrast checker → · Palette generator →

#28074E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva