#28197F#28197F

#28197F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.159 H 278.8°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#28197F
RGBrgb(40, 25, 127)
HSLhsl(249, 67%, 30%)
HSVhsv(249, 80%, 50%)
CMYKcmyk(68.5%, 80.3%, 0%, 50.2%)
CIE-LABlab(18.71, 38.40, -54.46)
CIE-LCHlch(18.71, 66.64, 305.19°)
OKLaboklab(31.62% 0.0244 -0.1573)
OKLCHoklch(31.62% 0.159 278.8)
XYZxyz(5.0522, 2.6783, 20.3253)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28197F #707F19
analogous
#193D7F #28197F #5B197F
triadic
#28197F #7F2819 #197F28
tetradic
#28197F #7F193D #707F19 #197F5B
square
#28197F #7F193D #707F19 #197F5B
split-complementary
#28197F #7F5B19 #3D7F19
monochromatic
#08051A #180F4C #28197F #3823B2 #513AD8

Accessibility & contrast

On white

13.67
#28197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#28197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28197F
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28197F#FFFFFF#000000##FFFFFF
##28197F1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #28197f;
/* rgb */ color: rgb(40, 25, 127);
/* oklch */ color: oklch(31.6% 0.159 278.8);
Tailwind
colors: {
  custom: {
    50: '#7059a5',
    500: '#28197f',
    950: '#000000',
  },
}
SCSS
$custom: #28197f;
$custom-light: #7059a5;
$custom-dark: #000000;
JSON
{
  "hex": "#28197f",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 248.824,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3162,
    "c": 0.15917,
    "h": 278.8
  },
  "luminance": 0.02679
}

Semantic roles & 50–950 ramp

primary
#28197F
secondary
#A2B341
accent
#EA3ED1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28197F

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

Preview Lab → · Contrast checker → · Palette generator →

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