#282A7D#282A7D

#282A7D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.137 H 275.3°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#282A7D
RGBrgb(40, 42, 125)
HSLhsl(239, 52%, 32%)
HSVhsv(239, 68%, 49%)
CMYKcmyk(68%, 66.4%, 0%, 51%)
CIE-LABlab(22.26, 27.36, -47.36)
CIE-LCHlch(22.26, 54.69, 300.01°)
OKLaboklab(34.1% 0.0127 -0.1366)
OKLCHoklch(34.1% 0.137 275.3)
XYZxyz(5.4035, 3.5872, 19.8057)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A7D #7D7B28
analogous
#28557D #282A7D #50287D
triadic
#282A7D #7D282A #2A7D28
tetradic
#282A7D #7D2855 #7D7B28 #287D50
square
#282A7D #7D2855 #7D7B28 #287D50
split-complementary
#282A7D #7D5028 #557D28
monochromatic
#0A0B20 #191A4F #282A7D #373AAB #5659C9

Accessibility & contrast

On white

12.23
#282A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#282A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A7D
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A7D#FFFFFF#000000##FFFFFF
##282A7D1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #282a7d;
/* rgb */ color: rgb(40, 42, 125);
/* oklch */ color: oklch(34.1% 0.137 275.3);
Tailwind
colors: {
  custom: {
    50: '#6d63a3',
    500: '#282a7d',
    950: '#000000',
  },
}
SCSS
$custom: #282a7d;
$custom-light: #6d63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#282a7d",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 238.588,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34099,
    "c": 0.13717,
    "h": 275.3
  },
  "luminance": 0.03588
}

Semantic roles & 50–950 ramp

primary
#282A7D
secondary
#AEAC53
accent
#D84DDB
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #282A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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