#282788#282788

#282788 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.156 H 275.0°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#282788
RGBrgb(40, 39, 136)
HSLhsl(241, 55%, 34%)
HSVhsv(241, 71%, 53%)
CMYKcmyk(70.6%, 71.3%, 0%, 46.7%)
CIE-LABlab(22.58, 33.26, -53.75)
CIE-LCHlch(22.58, 63.21, 301.75°)
OKLaboklab(34.66% 0.0137 -0.1553)
OKLCHoklch(34.66% 0.156 275)
XYZxyz(6.0431, 3.6792, 23.6795)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282788 #878827
analogous
#275688 #282788 #592788
triadic
#282788 #882827 #278828
tetradic
#282788 #882756 #878827 #278859
square
#282788 #882756 #878827 #278859
split-complementary
#282788 #885927 #568827
monochromatic
#0C0C29 #1A1958 #282788 #3635B8 #5B5AD0

Accessibility & contrast

On white

12.10
#282788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#282788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282788
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282788#FFFFFF#000000##FFFFFF
##2827881.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #282788;
/* rgb */ color: rgb(40, 39, 136);
/* oklch */ color: oklch(34.7% 0.156 275.0);
Tailwind
colors: {
  custom: {
    50: '#7062ac',
    500: '#282788',
    950: '#000000',
  },
}
SCSS
$custom: #282788;
$custom-light: #7062ac;
$custom-dark: #000000;
JSON
{
  "hex": "#282788",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 136
  },
  "hsl": {
    "h": 240.619,
    "s": 55.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34655,
    "c": 0.15591,
    "h": 275
  },
  "luminance": 0.0368
}

Semantic roles & 50–950 ramp

primary
#282788
secondary
#B4B556
accent
#DF49DD
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #282788

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

Preview Lab → · Contrast checker → · Palette generator →

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