#282159#282159

#282159 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.1% C 0.097 H 284.3°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#282159
RGBrgb(40, 33, 89)
HSLhsl(248, 46%, 24%)
HSVhsv(248, 63%, 35%)
CMYKcmyk(55.1%, 62.9%, 0%, 65.1%)
CIE-LABlab(16.80, 20.45, -32.83)
CIE-LCHlch(16.80, 38.68, 301.92°)
OKLaboklab(29.12% 0.024 -0.0939)
OKLCHoklch(29.12% 0.097 284.3)
XYZxyz(3.2216, 2.2599, 9.7157)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282159 #525921
analogous
#213659 #282159 #442159
triadic
#282159 #592821 #215928
tetradic
#282159 #592136 #525921 #215944
square
#282159 #592136 #525921 #215944
split-complementary
#282159 #594421 #365921
monochromatic
#0A0816 #14102C #282159 #3C3286 #5042B2

Accessibility & contrast

On white

14.46
#282159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#282159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282159
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282159#FFFFFF#000000##FFFFFF
##2821591.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5B
Deuteranopia (green-blind)
#002858
Tritanopia (blue-blind)
#152E39
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #282159;
/* rgb */ color: rgb(40, 33, 89);
/* oklch */ color: oklch(29.1% 0.097 284.3);
Tailwind
colors: {
  custom: {
    50: '#675c88',
    500: '#282159',
    950: '#000000',
  },
}
SCSS
$custom: #282159;
$custom-light: #675c88;
$custom-dark: #000000;
JSON
{
  "hex": "#282159",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 247.5,
    "s": 45.902,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29117,
    "c": 0.09694,
    "h": 284.3
  },
  "luminance": 0.0226
}

Semantic roles & 50–950 ramp

primary
#282159
secondary
#858D49
accent
#D652C5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040B
muted
#7A797C

Preview Lab

Preview with #282159

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

Preview Lab → · Contrast checker → · Palette generator →

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