#282C77#282C77

#282C77 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.126 H 275.1°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#282C77
RGBrgb(40, 44, 119)
HSLhsl(237, 50%, 31%)
HSVhsv(237, 66%, 47%)
CMYKcmyk(66.4%, 63%, 0%, 53.3%)
CIE-LABlab(22.25, 23.79, -43.56)
CIE-LCHlch(22.25, 49.64, 298.64°)
OKLaboklab(33.93% 0.0112 -0.1254)
OKLCHoklch(33.93% 0.126 275.1)
XYZxyz(5.1044, 3.5840, 17.8720)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C77 #777328
analogous
#285377 #282C77 #4B2877
triadic
#282C77 #77282C #2C7728
tetradic
#282C77 #772853 #777328 #28774B
square
#282C77 #772853 #777328 #28774B
split-complementary
#282C77 #774B28 #537728
monochromatic
#090A1B #191B49 #282C77 #373DA5 #545AC5

Accessibility & contrast

On white

12.23
#282C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282C77
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C77#FFFFFF#000000##FFFFFF
##282C771.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #282c77;
/* rgb */ color: rgb(40, 44, 119);
/* oklch */ color: oklch(33.9% 0.126 275.1);
Tailwind
colors: {
  custom: {
    50: '#6c659f',
    500: '#282c77',
    950: '#000000',
  },
}
SCSS
$custom: #282c77;
$custom-light: #6c659f;
$custom-dark: #000000;
JSON
{
  "hex": "#282c77",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 119
  },
  "hsl": {
    "h": 236.962,
    "s": 49.686,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33926,
    "c": 0.12593,
    "h": 275.1
  },
  "luminance": 0.03584
}

Semantic roles & 50–950 ramp

primary
#282C77
secondary
#A9A552
accent
#D24FD9
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #282C77

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

Preview Lab → · Contrast checker → · Palette generator →

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