#282C80#282C80

#282C80 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.139 H 274.4°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#282C80
RGBrgb(40, 44, 128)
HSLhsl(237, 52%, 33%)
HSVhsv(237, 69%, 50%)
CMYKcmyk(68.8%, 65.6%, 0%, 49.8%)
CIE-LABlab(23.03, 27.12, -47.98)
CIE-LCHlch(23.03, 55.12, 299.48°)
OKLaboklab(34.75% 0.0108 -0.1384)
OKLCHoklch(34.75% 0.139 274.4)
XYZxyz(5.6707, 3.8105, 20.8545)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C80 #807C28
analogous
#285880 #282C80 #502880
triadic
#282C80 #80282C #2C8028
tetradic
#282C80 #802858 #807C28 #288050
square
#282C80 #802858 #807C28 #288050
split-complementary
#282C80 #805028 #588028
monochromatic
#0B0C23 #191C51 #282C80 #373CAF #585DCB

Accessibility & contrast

On white

11.92
#282C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#282C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282C80
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C80#FFFFFF#000000##FFFFFF
##282C801.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B83
Deuteranopia (green-blind)
#00337E
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #282c80;
/* rgb */ color: rgb(40, 44, 128);
/* oklch */ color: oklch(34.8% 0.139 274.4);
Tailwind
colors: {
  custom: {
    50: '#6e65a6',
    500: '#282c80',
    950: '#000000',
  },
}
SCSS
$custom: #282c80;
$custom-light: #6e65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#282c80",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 128
  },
  "hsl": {
    "h": 237.273,
    "s": 52.381,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34752,
    "c": 0.13882,
    "h": 274.4
  },
  "luminance": 0.03811
}

Semantic roles & 50–950 ramp

primary
#282C80
secondary
#B0AC54
accent
#D54CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #282C80

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

Preview Lab → · Contrast checker → · Palette generator →

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