#28187A#28187A

#28187A is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.154 H 279.9°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#28187A
RGBrgb(40, 24, 122)
HSLhsl(250, 67%, 29%)
HSVhsv(250, 80%, 48%)
CMYKcmyk(67.2%, 80.3%, 0%, 52.2%)
CIE-LABlab(17.96, 37.32, -52.51)
CIE-LCHlch(17.96, 64.42, 305.40°)
OKLaboklab(30.93% 0.0264 -0.1516)
OKLCHoklch(30.93% 0.154 279.9)
XYZxyz(4.7134, 2.5091, 18.6445)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28187A #6A7A18
analogous
#18397A #28187A #59187A
triadic
#28187A #7A2818 #187A28
tetradic
#28187A #7A1839 #6A7A18 #187A59
square
#28187A #7A1839 #6A7A18 #187A59
split-complementary
#28187A #7A5918 #397A18
monochromatic
#08051A #170E47 #28187A #3922AD #5035D7

Accessibility & contrast

On white

13.98
#28187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#28187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28187A
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28187A#FFFFFF#000000##FFFFFF
##28187A1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002878
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #28187a;
/* rgb */ color: rgb(40, 24, 122);
/* oklch */ color: oklch(30.9% 0.154 279.9);
Tailwind
colors: {
  custom: {
    50: '#6f58a2',
    500: '#28187a',
    950: '#000000',
  },
}
SCSS
$custom: #28187a;
$custom-light: #6f58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#28187a",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 249.796,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30931,
    "c": 0.15388,
    "h": 279.9
  },
  "luminance": 0.0251
}

Semantic roles & 50–950 ramp

primary
#28187A
secondary
#9DAF3F
accent
#EA3ECE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28187A

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

Preview Lab → · Contrast checker → · Palette generator →

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