#282978#282978

#282978 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.131 H 276.1°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#282978
RGBrgb(40, 41, 120)
HSLhsl(239, 50%, 31%)
HSVhsv(239, 67%, 47%)
CMYKcmyk(66.7%, 65.8%, 0%, 52.9%)
CIE-LABlab(21.55, 26.19, -45.33)
CIE-LCHlch(21.55, 52.36, 300.02°)
OKLaboklab(33.44% 0.0139 -0.1306)
OKLCHoklch(33.44% 0.131 276.1)
XYZxyz(5.0571, 3.3926, 18.1540)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282978 #787728
analogous
#285178 #282978 #4F2878
triadic
#282978 #782829 #297828
tetradic
#282978 #782851 #787728 #28784F
square
#282978 #782851 #787728 #28784F
split-complementary
#282978 #784F28 #517828
monochromatic
#090A1C #19194A #282978 #3739A6 #5456C6

Accessibility & contrast

On white

12.51
#282978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#282978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282978
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282978#FFFFFF#000000##FFFFFF
##2829781.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #282978;
/* rgb */ color: rgb(40, 41, 120);
/* oklch */ color: oklch(33.4% 0.131 276.1);
Tailwind
colors: {
  custom: {
    50: '#6c63a0',
    500: '#282978',
    950: '#000000',
  },
}
SCSS
$custom: #282978;
$custom-light: #6c63a0;
$custom-dark: #000000;
JSON
{
  "hex": "#282978",
  "rgb": {
    "r": 40,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 239.25,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33444,
    "c": 0.13138,
    "h": 276.1
  },
  "luminance": 0.03393
}

Semantic roles & 50–950 ramp

primary
#282978
secondary
#AAA952
accent
#D84EDA
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050F
muted
#7A797E

Preview Lab

Preview with #282978

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

Preview Lab → · Contrast checker → · Palette generator →

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