#282A9A#282A9A

#282A9A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.176 H 272.9°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#282A9A
RGBrgb(40, 42, 154)
HSLhsl(239, 59%, 38%)
HSVhsv(239, 74%, 60%)
CMYKcmyk(74%, 72.7%, 0%, 39.6%)
CIE-LABlab(25.07, 37.74, -60.79)
CIE-LCHlch(25.07, 71.55, 301.83°)
OKLaboklab(36.99% 0.0091 -0.1759)
OKLCHoklch(36.99% 0.176 272.9)
XYZxyz(7.5338, 4.4394, 31.0254)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A9A #9A9828
analogous
#28639A #282A9A #5F289A
triadic
#282A9A #9A282A #2A9A28
tetradic
#282A9A #9A2863 #9A9828 #289A5F
square
#282A9A #9A2863 #9A9828 #289A5F
split-complementary
#282A9A #9A5F28 #639A28
monochromatic
#0F1039 #1B1D69 #282A9A #3537CA #6567D7

Accessibility & contrast

On white

11.12
#282A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#282A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A9A
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A9A#FFFFFF#000000##FFFFFF
##282A9A1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003698
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #282a9a;
/* rgb */ color: rgb(40, 42, 154);
/* oklch */ color: oklch(37.0% 0.176 272.9);
Tailwind
colors: {
  custom: {
    50: '#7464b9',
    500: '#282a9a',
    950: '#000000',
  },
}
SCSS
$custom: #282a9a;
$custom-light: #7464b9;
$custom-dark: #000000;
JSON
{
  "hex": "#282a9a",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 238.947,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36993,
    "c": 0.17609,
    "h": 272.9
  },
  "luminance": 0.0444
}

Semantic roles & 50–950 ramp

primary
#282A9A
secondary
#BDBB61
accent
#DF46E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #282A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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