#282D7A#282D7A

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

Color values

HEX#282D7A
RGBrgb(40, 45, 122)
HSLhsl(236, 51%, 32%)
HSVhsv(236, 67%, 48%)
CMYKcmyk(67.2%, 63.1%, 0%, 52.2%)
CIE-LABlab(22.77, 24.22, -44.62)
CIE-LCHlch(22.77, 50.78, 298.50°)
OKLaboklab(34.39% 0.0102 -0.1285)
OKLCHoklch(34.39% 0.129 274.5)
XYZxyz(5.3252, 3.7326, 18.8484)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282D7A #7A7528
analogous
#28567A #282D7A #4C287A
triadic
#282D7A #7A282D #2D7A28
tetradic
#282D7A #7A2856 #7A7528 #287A4C
square
#282D7A #7A2856 #7A7528 #287A4C
split-complementary
#282D7A #7A4C28 #567A28
monochromatic
#0A0B1E #191C4C #282D7A #373EA8 #555CC7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##282D7A#FFFFFF#000000##FFFFFF
##282D7A1.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)
#003A7D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #282d7a;
/* rgb */ color: rgb(40, 45, 122);
/* oklch */ color: oklch(34.4% 0.129 274.5);
Tailwind
colors: {
  custom: {
    50: '#6d66a1',
    500: '#282d7a',
    950: '#000000',
  },
}
SCSS
$custom: #282d7a;
$custom-light: #6d66a1;
$custom-dark: #000000;
JSON
{
  "hex": "#282d7a",
  "rgb": {
    "r": 40,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 236.341,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34391,
    "c": 0.12893,
    "h": 274.5
  },
  "luminance": 0.03733
}

Semantic roles & 50–950 ramp

primary
#282D7A
secondary
#ACA652
accent
#D24EDA
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #282D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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