#282C78#282C78

#282C78 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.127 H 275.0°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#282C78
RGBrgb(40, 44, 120)
HSLhsl(237, 50%, 31%)
HSVhsv(237, 67%, 47%)
CMYKcmyk(66.7%, 63.3%, 0%, 52.9%)
CIE-LABlab(22.33, 24.16, -44.06)
CIE-LCHlch(22.33, 50.25, 298.74°)
OKLaboklab(34.02% 0.0112 -0.1269)
OKLCHoklch(34.02% 0.127 275)
XYZxyz(5.1648, 3.6081, 18.1899)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C78 #787428
analogous
#285478 #282C78 #4C2878
triadic
#282C78 #78282C #2C7828
tetradic
#282C78 #782854 #787428 #28784C
square
#282C78 #782854 #787428 #28784C
split-complementary
#282C78 #784C28 #547828
monochromatic
#090A1C #191B4A #282C78 #373DA6 #545AC6

Accessibility & contrast

On white

12.20
#282C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#282C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282C78
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C78#FFFFFF#000000##FFFFFF
##282C781.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #282c78;
/* rgb */ color: rgb(40, 44, 120);
/* oklch */ color: oklch(34.0% 0.127 275.0);
Tailwind
colors: {
  custom: {
    50: '#6c65a0',
    500: '#282c78',
    950: '#000000',
  },
}
SCSS
$custom: #282c78;
$custom-light: #6c65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#282c78",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 237,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34016,
    "c": 0.12738,
    "h": 275
  },
  "luminance": 0.03609
}

Semantic roles & 50–950 ramp

primary
#282C78
secondary
#AAA652
accent
#D34EDA
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050F
muted
#7A7A7E

Preview Lab

Preview with #282C78

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

Preview Lab → · Contrast checker → · Palette generator →

#282C78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva