#282C7D#282C7D

#282C7D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.135 H 274.7°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#282C7D
RGBrgb(40, 44, 125)
HSLhsl(237, 52%, 32%)
HSVhsv(237, 68%, 49%)
CMYKcmyk(68%, 64.8%, 0%, 51%)
CIE-LABlab(22.77, 26.01, -46.53)
CIE-LCHlch(22.77, 53.31, 299.21°)
OKLaboklab(34.47% 0.011 -0.1341)
OKLCHoklch(34.47% 0.135 274.7)
XYZxyz(5.4762, 3.7327, 19.8299)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C7D #7D7928
analogous
#28577D #282C7D #4E287D
triadic
#282C7D #7D282C #2C7D28
tetradic
#282C7D #7D2857 #7D7928 #287D4E
square
#282C7D #7D2857 #7D7928 #287D4E
split-complementary
#282C7D #7D4E28 #577D28
monochromatic
#0A0B20 #191C4F #282C7D #373CAB #565CC9

Accessibility & contrast

On white

12.02
#282C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282C7D
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C7D#FFFFFF#000000##FFFFFF
##282C7D1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #282c7d;
/* rgb */ color: rgb(40, 44, 125);
/* oklch */ color: oklch(34.5% 0.135 274.7);
Tailwind
colors: {
  custom: {
    50: '#6d65a3',
    500: '#282c7d',
    950: '#000000',
  },
}
SCSS
$custom: #282c7d;
$custom-light: #6d65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#282c7d",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 125
  },
  "hsl": {
    "h": 237.176,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34473,
    "c": 0.13457,
    "h": 274.7
  },
  "luminance": 0.03733
}

Semantic roles & 50–950 ramp

primary
#282C7D
secondary
#AEAA53
accent
#D44DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #282C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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