#282C7F#282C7F

#282C7F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.137 H 274.5°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#282C7F
RGBrgb(40, 44, 127)
HSLhsl(237, 52%, 33%)
HSVhsv(237, 69%, 50%)
CMYKcmyk(68.5%, 65.4%, 0%, 50.2%)
CIE-LABlab(22.95, 26.75, -47.50)
CIE-LCHlch(22.95, 54.52, 299.39°)
OKLaboklab(34.66% 0.0108 -0.137)
OKLCHoklch(34.66% 0.137 274.5)
XYZxyz(5.6053, 3.7843, 20.5096)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C7F #7F7B28
analogous
#28587F #282C7F #4F287F
triadic
#282C7F #7F282C #2C7F28
tetradic
#282C7F #7F2858 #7F7B28 #287F4F
square
#282C7F #7F2858 #7F7B28 #287F4F
split-complementary
#282C7F #7F4F28 #587F28
monochromatic
#0B0C22 #191C50 #282C7F #373CAE #575DCA

Accessibility & contrast

On white

11.95
#282C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282C7F
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C7F#FFFFFF#000000##FFFFFF
##282C7F1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #282c7f;
/* rgb */ color: rgb(40, 44, 127);
/* oklch */ color: oklch(34.7% 0.137 274.5);
Tailwind
colors: {
  custom: {
    50: '#6e65a5',
    500: '#282c7f',
    950: '#000000',
  },
}
SCSS
$custom: #282c7f;
$custom-light: #6e65a5;
$custom-dark: #000000;
JSON
{
  "hex": "#282c7f",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 237.241,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34659,
    "c": 0.13741,
    "h": 274.5
  },
  "luminance": 0.03785
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #282C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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