#28197B#28197B

#28197B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.154 H 279.5°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#28197B
RGBrgb(40, 25, 123)
HSLhsl(249, 66%, 29%)
HSVhsv(249, 80%, 48%)
CMYKcmyk(67.5%, 79.7%, 0%, 51.8%)
CIE-LABlab(18.26, 37.10, -52.65)
CIE-LCHlch(18.26, 64.41, 305.17°)
OKLaboklab(31.17% 0.0255 -0.152)
OKLCHoklch(31.17% 0.154 279.5)
XYZxyz(4.7967, 2.5761, 18.9795)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28197B #6C7B19
analogous
#193B7B #28197B #59197B
triadic
#28197B #7B2819 #197B28
tetradic
#28197B #7B193B #6C7B19 #197B59
square
#28197B #7B193B #6C7B19 #197B59
split-complementary
#28197B #7B5919 #3B7B19
monochromatic
#080519 #170F48 #28197B #3923AE #5038D7

Accessibility & contrast

On white

13.86
#28197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28197B
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28197B#FFFFFF#000000##FFFFFF
##28197B1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #28197b;
/* rgb */ color: rgb(40, 25, 123);
/* oklch */ color: oklch(31.2% 0.154 279.5);
Tailwind
colors: {
  custom: {
    50: '#6f58a2',
    500: '#28197b',
    950: '#000000',
  },
}
SCSS
$custom: #28197b;
$custom-light: #6f58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#28197b",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 249.184,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31174,
    "c": 0.15415,
    "h": 279.5
  },
  "luminance": 0.02576
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28197B

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

Preview Lab → · Contrast checker → · Palette generator →

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