#28197C#28197C

#28197C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.155 H 279.4°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#28197C
RGBrgb(40, 25, 124)
HSLhsl(249, 66%, 29%)
HSVhsv(249, 80%, 49%)
CMYKcmyk(67.7%, 79.8%, 0%, 51.4%)
CIE-LABlab(18.37, 37.43, -53.11)
CIE-LCHlch(18.37, 64.97, 305.17°)
OKLaboklab(31.29% 0.0253 -0.1533)
OKLCHoklch(31.29% 0.155 279.4)
XYZxyz(4.8596, 2.6012, 19.3109)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28197C #6D7C19
analogous
#193C7C #28197C #5A197C
triadic
#28197C #7C2819 #197C28
tetradic
#28197C #7C193C #6D7C19 #197C5A
square
#28197C #7C193C #6D7C19 #197C5A
split-complementary
#28197C #7C5A19 #3C7C19
monochromatic
#080519 #180F49 #28197C #3823AF #5038D7

Accessibility & contrast

On white

13.81
#28197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#28197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28197C
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28197C#FFFFFF#000000##FFFFFF
##28197C1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #28197c;
/* rgb */ color: rgb(40, 25, 124);
/* oklch */ color: oklch(31.3% 0.155 279.4);
Tailwind
colors: {
  custom: {
    50: '#6f58a3',
    500: '#28197c',
    950: '#000000',
  },
}
SCSS
$custom: #28197c;
$custom-light: #6f58a3;
$custom-dark: #000000;
JSON
{
  "hex": "#28197c",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 249.091,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31285,
    "c": 0.15542,
    "h": 279.4
  },
  "luminance": 0.02602
}

Semantic roles & 50–950 ramp

primary
#28197C
secondary
#9FB040
accent
#E93ECF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28197C

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

Preview Lab → · Contrast checker → · Palette generator →

#28197C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva