#282A7E#282A7E

#282A7E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.139 H 275.2°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#282A7E
RGBrgb(40, 42, 126)
HSLhsl(239, 52%, 33%)
HSVhsv(239, 68%, 49%)
CMYKcmyk(68.3%, 66.7%, 0%, 50.6%)
CIE-LABlab(22.35, 27.72, -47.84)
CIE-LCHlch(22.35, 55.30, 300.09°)
OKLaboklab(34.19% 0.0126 -0.138)
OKLCHoklch(34.19% 0.139 275.2)
XYZxyz(5.4677, 3.6129, 20.1438)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A7E #7E7C28
analogous
#28557E #282A7E #51287E
triadic
#282A7E #7E282A #2A7E28
tetradic
#282A7E #7E2855 #7E7C28 #287E51
square
#282A7E #7E2855 #7E7C28 #287E51
split-complementary
#282A7E #7E5128 #557E28
monochromatic
#0B0B21 #191B50 #282A7E #3739AC #5759CA

Accessibility & contrast

On white

12.19
#282A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282A7E
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A7E#FFFFFF#000000##FFFFFF
##282A7E1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #282a7e;
/* rgb */ color: rgb(40, 42, 126);
/* oklch */ color: oklch(34.2% 0.139 275.2);
Tailwind
colors: {
  custom: {
    50: '#6e64a4',
    500: '#282a7e',
    950: '#000000',
  },
}
SCSS
$custom: #282a7e;
$custom-light: #6e64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#282a7e",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 238.605,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34194,
    "c": 0.13857,
    "h": 275.2
  },
  "luminance": 0.03613
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #282A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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