#282156#282156

#282156 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.9% C 0.092 H 285.0°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#282156
RGBrgb(40, 33, 86)
HSLhsl(248, 45%, 23%)
HSVhsv(248, 62%, 34%)
CMYKcmyk(53.5%, 61.6%, 0%, 66.3%)
CIE-LABlab(16.56, 19.39, -31.20)
CIE-LCHlch(16.56, 36.74, 301.86°)
OKLaboklab(28.86% 0.024 -0.0892)
OKLCHoklch(28.86% 0.092 285)
XYZxyz(3.0981, 2.2106, 9.0657)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282156 #4F5621
analogous
#213456 #282156 #422156
triadic
#282156 #562821 #215628
tetradic
#282156 #562134 #4F5621 #215642
square
#282156 #562134 #4F5621 #215642
split-complementary
#282156 #564221 #345621
monochromatic
#0A0816 #13102A #282156 #3D3282 #5143AE

Accessibility & contrast

On white

14.56
#282156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#282156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282156
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282156#FFFFFF#000000##FFFFFF
##2821561.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012A58
Deuteranopia (green-blind)
#002755
Tritanopia (blue-blind)
#172D38
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #282156;
/* rgb */ color: rgb(40, 33, 86);
/* oklch */ color: oklch(28.9% 0.092 285.0);
Tailwind
colors: {
  custom: {
    50: '#665c86',
    500: '#282156',
    950: '#000000',
  },
}
SCSS
$custom: #282156;
$custom-light: #665c86;
$custom-dark: #000000;
JSON
{
  "hex": "#282156",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 247.925,
    "s": 44.538,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28863,
    "c": 0.09233,
    "h": 285
  },
  "luminance": 0.02211
}

Semantic roles & 50–950 ramp

primary
#282156
secondary
#828A49
accent
#D454C3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #282156

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

Preview Lab → · Contrast checker → · Palette generator →

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