#28197A#28197A

#28197A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.153 H 279.7°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#28197A
RGBrgb(40, 25, 122)
HSLhsl(249, 66%, 29%)
HSVhsv(249, 80%, 48%)
CMYKcmyk(67.2%, 79.5%, 0%, 52.2%)
CIE-LABlab(18.15, 36.78, -52.20)
CIE-LCHlch(18.15, 63.85, 305.17°)
OKLaboklab(31.06% 0.0258 -0.1507)
OKLCHoklch(31.06% 0.153 279.7)
XYZxyz(4.7344, 2.5511, 18.6515)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28197A #6B7A19
analogous
#193B7A #28197A #59197A
triadic
#28197A #7A2819 #197A28
tetradic
#28197A #7A193B #6B7A19 #197A59
square
#28197A #7A193B #6B7A19 #197A59
split-complementary
#28197A #7A5919 #3B7A19
monochromatic
#080519 #170F47 #28197A #3923AD #5037D6

Accessibility & contrast

On white

13.90
#28197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#28197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28197A
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28197A#FFFFFF#000000##FFFFFF
##28197A1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #28197a;
/* rgb */ color: rgb(40, 25, 122);
/* oklch */ color: oklch(31.1% 0.153 279.7);
Tailwind
colors: {
  custom: {
    50: '#6e58a2',
    500: '#28197a',
    950: '#000000',
  },
}
SCSS
$custom: #28197a;
$custom-light: #6e58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#28197a",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 249.278,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31063,
    "c": 0.15288,
    "h": 279.7
  },
  "luminance": 0.02552
}

Semantic roles & 50–950 ramp

primary
#28197A
secondary
#9DAF40
accent
#E93FCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28197A

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

Preview Lab → · Contrast checker → · Palette generator →

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