#282C6A#282C6A

#282C6A is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.8% C 0.107 H 276.0°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#282C6A
RGBrgb(40, 44, 106)
HSLhsl(236, 45%, 29%)
HSVhsv(236, 62%, 42%)
CMYKcmyk(62.3%, 58.5%, 0%, 58.4%)
CIE-LABlab(21.18, 18.95, -36.93)
CIE-LCHlch(21.18, 41.51, 297.16°)
OKLaboklab(32.8% 0.0112 -0.1059)
OKLCHoklch(32.8% 0.107 276)
XYZxyz(4.3764, 3.2928, 14.0378)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C6A #6A6628
analogous
#284D6A #282C6A #45286A
triadic
#282C6A #6A282C #2C6A28
tetradic
#282C6A #6A284D #6A6628 #286A45
square
#282C6A #6A284D #6A6628 #286A45
split-complementary
#282C6A #6A4528 #4D6A28
monochromatic
#080916 #171A3E #282C6A #393E96 #5056BD

Accessibility & contrast

On white

12.66
#282C6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#282C6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282C6A
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C6A#FFFFFF#000000##FFFFFF
##282C6A1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01366C
Deuteranopia (green-blind)
#003069
Tritanopia (blue-blind)
#003B46
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #282c6a;
/* rgb */ color: rgb(40, 44, 106);
/* oklch */ color: oklch(32.8% 0.107 276.0);
Tailwind
colors: {
  custom: {
    50: '#696595',
    500: '#282c6a',
    950: '#000000',
  },
}
SCSS
$custom: #282c6a;
$custom-light: #696595;
$custom-dark: #000000;
JSON
{
  "hex": "#282c6a",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 106
  },
  "hsl": {
    "h": 236.364,
    "s": 45.205,
    "l": 28.627
  },
  "oklch": {
    "l": 0.328,
    "c": 0.10651,
    "h": 276
  },
  "luminance": 0.03293
}

Semantic roles & 50–950 ramp

primary
#282C6A
secondary
#9D9851
accent
#CD53D5
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050D
muted
#7A7A7E

Preview Lab

Preview with #282C6A

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

Preview Lab → · Contrast checker → · Palette generator →

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