#282187#282187

#282187 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.161 H 276.3°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#282187
RGBrgb(40, 33, 135)
HSLhsl(244, 61%, 33%)
HSVhsv(244, 76%, 53%)
CMYKcmyk(70.4%, 75.6%, 0%, 47.1%)
CIE-LABlab(21.16, 36.57, -55.46)
CIE-LCHlch(21.16, 66.43, 303.40°)
OKLaboklab(33.61% 0.0177 -0.1603)
OKLCHoklch(33.61% 0.161 276.3)
XYZxyz(5.7907, 3.2876, 23.2464)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282187 #808721
analogous
#214D87 #282187 #5B2187
triadic
#282187 #872821 #218728
tetradic
#282187 #87214D #808721 #21875B
square
#282187 #87214D #808721 #21875B
split-complementary
#282187 #875B21 #4D8721
monochromatic
#0B0925 #191556 #282187 #372DB8 #584FD4

Accessibility & contrast

On white

12.67
#282187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#282187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282187
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282187#FFFFFF#000000##FFFFFF
##2821871.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #282187;
/* rgb */ color: rgb(40, 33, 135);
/* oklch */ color: oklch(33.6% 0.161 276.3);
Tailwind
colors: {
  custom: {
    50: '#715eab',
    500: '#282187',
    950: '#000000',
  },
}
SCSS
$custom: #282187;
$custom-light: #715eab;
$custom-dark: #000000;
JSON
{
  "hex": "#282187",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 244.118,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33609,
    "c": 0.16127,
    "h": 276.3
  },
  "luminance": 0.03288
}

Semantic roles & 50–950 ramp

primary
#282187
secondary
#B0B74D
accent
#E444D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #282187

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

Preview Lab → · Contrast checker → · Palette generator →

#282187 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva