#282C81#282C81

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

Color values

HEX#282C81
RGBrgb(40, 44, 129)
HSLhsl(237, 53%, 33%)
HSVhsv(237, 69%, 51%)
CMYKcmyk(69%, 65.9%, 0%, 49.4%)
CIE-LABlab(23.12, 27.49, -48.47)
CIE-LCHlch(23.12, 55.72, 299.56°)
OKLaboklab(34.85% 0.0107 -0.1398)
OKLCHoklch(34.85% 0.14 274.4)
XYZxyz(5.7369, 3.8369, 21.2029)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C81 #817D28
analogous
#285881 #282C81 #502881
triadic
#282C81 #81282C #2C8128
tetradic
#282C81 #812858 #817D28 #288150
square
#282C81 #812858 #817D28 #288150
split-complementary
#282C81 #815028 #588128
monochromatic
#0B0C24 #1A1C52 #282C81 #363CB0 #585DCB

Accessibility & contrast

On white

11.88
#282C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#282C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282C81
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C81#FFFFFF#000000##FFFFFF
##282C811.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #282c81;
/* rgb */ color: rgb(40, 44, 129);
/* oklch */ color: oklch(34.8% 0.140 274.4);
Tailwind
colors: {
  custom: {
    50: '#6e65a6',
    500: '#282c81',
    950: '#000000',
  },
}
SCSS
$custom: #282c81;
$custom-light: #6e65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#282c81",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 237.303,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34846,
    "c": 0.14023,
    "h": 274.4
  },
  "luminance": 0.03837
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #282C81

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

Preview Lab → · Contrast checker → · Palette generator →

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