#282E7D#282E7D

#282E7D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.132 H 274.0°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#282E7D
RGBrgb(40, 46, 125)
HSLhsl(236, 52%, 32%)
HSVhsv(236, 68%, 49%)
CMYKcmyk(68%, 63.2%, 0%, 51%)
CIE-LABlab(23.29, 24.66, -45.68)
CIE-LCHlch(23.29, 51.91, 298.37°)
OKLaboklab(34.86% 0.0092 -0.1316)
OKLCHoklch(34.86% 0.132 274)
XYZxyz(5.5525, 3.8853, 19.8554)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282E7D #7D7728
analogous
#28587D #282E7D #4D287D
triadic
#282E7D #7D282E #2E7D28
tetradic
#282E7D #7D2858 #7D7728 #287D4D
square
#282E7D #7D2858 #7D7728 #287D4D
split-complementary
#282E7D #7D4D28 #587D28
monochromatic
#0A0C20 #191D4F #282E7D #373FAB #565EC9

Accessibility & contrast

On white

11.82
#282E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#282E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282E7D
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282E7D#FFFFFF#000000##FFFFFF
##282E7D1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #282e7d;
/* rgb */ color: rgb(40, 46, 125);
/* oklch */ color: oklch(34.9% 0.132 274.0);
Tailwind
colors: {
  custom: {
    50: '#6d66a3',
    500: '#282e7d',
    950: '#000000',
  },
}
SCSS
$custom: #282e7d;
$custom-light: #6d66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#282e7d",
  "rgb": {
    "r": 40,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 235.765,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34857,
    "c": 0.13193,
    "h": 274
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#282E7D
secondary
#AEA853
accent
#D14DDB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #282E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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