#282A8D#282A8D

#282A8D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.159 H 273.9°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#282A8D
RGBrgb(40, 42, 141)
HSLhsl(239, 56%, 35%)
HSVhsv(239, 72%, 55%)
CMYKcmyk(71.6%, 70.2%, 0%, 44.7%)
CIE-LABlab(23.77, 33.15, -54.92)
CIE-LCHlch(23.77, 64.15, 301.11°)
OKLaboklab(35.66% 0.0109 -0.1587)
OKLCHoklch(35.66% 0.159 273.9)
XYZxyz(6.5092, 4.0295, 25.6289)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A8D #8D8B28
analogous
#285C8D #282A8D #58288D
triadic
#282A8D #8D282A #2A8D28
tetradic
#282A8D #8D285C #8D8B28 #288D58
square
#282A8D #8D285C #8D8B28 #288D58
split-complementary
#282A8D #8D5828 #5C8D28
monochromatic
#0D0E2E #1A1C5D #282A8D #3638BD #5E60D1

Accessibility & contrast

On white

11.63
#282A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#282A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A8D
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A8D#FFFFFF#000000##FFFFFF
##282A8D1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #282a8d;
/* rgb */ color: rgb(40, 42, 141);
/* oklch */ color: oklch(35.7% 0.159 273.9);
Tailwind
colors: {
  custom: {
    50: '#7164af',
    500: '#282a8d',
    950: '#000000',
  },
}
SCSS
$custom: #282a8d;
$custom-light: #7164af;
$custom-dark: #000000;
JSON
{
  "hex": "#282a8d",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 238.812,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35661,
    "c": 0.1591,
    "h": 273.9
  },
  "luminance": 0.0403
}

Semantic roles & 50–950 ramp

primary
#282A8D
secondary
#B7B55A
accent
#DC49DF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #282A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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