#282A8F#282A8F

#282A8F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.162 H 273.8°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#282A8F
RGBrgb(40, 42, 143)
HSLhsl(239, 56%, 36%)
HSVhsv(239, 72%, 56%)
CMYKcmyk(72%, 70.6%, 0%, 43.9%)
CIE-LABlab(23.97, 33.86, -55.84)
CIE-LCHlch(23.97, 65.30, 301.23°)
OKLaboklab(35.86% 0.0107 -0.1614)
OKLCHoklch(35.86% 0.162 273.8)
XYZxyz(6.6593, 4.0896, 26.4197)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A8F #8F8D28
analogous
#285D8F #282A8F #59288F
triadic
#282A8F #8F282A #2A8F28
tetradic
#282A8F #8F285D #8F8D28 #288F59
square
#282A8F #8F285D #8F8D28 #288F59
split-complementary
#282A8F #8F5928 #5D8F28
monochromatic
#0D0E2F #1B1C5F #282A8F #3538BF #5F61D2

Accessibility & contrast

On white

11.55
#282A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#282A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A8F
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A8F#FFFFFF#000000##FFFFFF
##282A8F1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #282a8f;
/* rgb */ color: rgb(40, 42, 143);
/* oklch */ color: oklch(35.9% 0.162 273.8);
Tailwind
colors: {
  custom: {
    50: '#7264b1',
    500: '#282a8f',
    950: '#000000',
  },
}
SCSS
$custom: #282a8f;
$custom-light: #7264b1;
$custom-dark: #000000;
JSON
{
  "hex": "#282a8f",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 238.835,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35862,
    "c": 0.16175,
    "h": 273.8
  },
  "luminance": 0.0409
}

Semantic roles & 50–950 ramp

primary
#282A8F
secondary
#B8B65B
accent
#DD48E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #282A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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