#282C7E#282C7E

#282C7E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.136 H 274.6°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#282C7E
RGBrgb(40, 44, 126)
HSLhsl(237, 52%, 33%)
HSVhsv(237, 68%, 49%)
CMYKcmyk(68.3%, 65.1%, 0%, 50.6%)
CIE-LABlab(22.86, 26.38, -47.01)
CIE-LCHlch(22.86, 53.91, 299.30°)
OKLaboklab(34.57% 0.0109 -0.1356)
OKLCHoklch(34.57% 0.136 274.6)
XYZxyz(5.5404, 3.7584, 20.1681)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C7E #7E7A28
analogous
#28577E #282C7E #4F287E
triadic
#282C7E #7E282C #2C7E28
tetradic
#282C7E #7E2857 #7E7A28 #287E4F
square
#282C7E #7E2857 #7E7A28 #287E4F
split-complementary
#282C7E #7E4F28 #577E28
monochromatic
#0B0C21 #191C50 #282C7E #373CAC #575CCA

Accessibility & contrast

On white

11.99
#282C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#282C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282C7E
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C7E#FFFFFF#000000##FFFFFF
##282C7E1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #282c7e;
/* rgb */ color: rgb(40, 44, 126);
/* oklch */ color: oklch(34.6% 0.136 274.6);
Tailwind
colors: {
  custom: {
    50: '#6e65a4',
    500: '#282c7e',
    950: '#000000',
  },
}
SCSS
$custom: #282c7e;
$custom-light: #6e65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#282c7e",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 237.209,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34566,
    "c": 0.136,
    "h": 274.6
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#282C7E
secondary
#AFAA53
accent
#D54DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #282C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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