#282D7E#282D7E

#282D7E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.135 H 274.3°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#282D7E
RGBrgb(40, 45, 126)
HSLhsl(237, 52%, 33%)
HSVhsv(237, 68%, 49%)
CMYKcmyk(68.3%, 64.3%, 0%, 50.6%)
CIE-LABlab(23.11, 25.71, -46.59)
CIE-LCHlch(23.11, 53.22, 298.89°)
OKLaboklab(34.76% 0.01 -0.1343)
OKLCHoklch(34.76% 0.135 274.3)
XYZxyz(5.5781, 3.8338, 20.1806)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282D7E #7E7928
analogous
#28587E #282D7E #4E287E
triadic
#282D7E #7E282D #2D7E28
tetradic
#282D7E #7E2858 #7E7928 #287E4E
square
#282D7E #7E2858 #7E7928 #287E4E
split-complementary
#282D7E #7E4E28 #587E28
monochromatic
#0B0C21 #191C50 #282D7E #373EAC #575DCA

Accessibility & contrast

On white

11.89
#282D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#282D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282D7E
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282D7E#FFFFFF#000000##FFFFFF
##282D7E1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #282d7e;
/* rgb */ color: rgb(40, 45, 126);
/* oklch */ color: oklch(34.8% 0.135 274.3);
Tailwind
colors: {
  custom: {
    50: '#6d66a4',
    500: '#282d7e',
    950: '#000000',
  },
}
SCSS
$custom: #282d7e;
$custom-light: #6d66a4;
$custom-dark: #000000;
JSON
{
  "hex": "#282d7e",
  "rgb": {
    "r": 40,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 236.512,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34755,
    "c": 0.13468,
    "h": 274.3
  },
  "luminance": 0.03834
}

Semantic roles & 50–950 ramp

primary
#282D7E
secondary
#AFA953
accent
#D34DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #282D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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