#282988#282988

#282988 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.154 H 274.6°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#282988
RGBrgb(40, 41, 136)
HSLhsl(239, 55%, 35%)
HSVhsv(239, 71%, 53%)
CMYKcmyk(70.6%, 69.9%, 0%, 46.7%)
CIE-LABlab(23.05, 32.00, -52.99)
CIE-LCHlch(23.05, 61.90, 301.12°)
OKLaboklab(34.99% 0.0123 -0.1531)
OKLCHoklch(34.99% 0.154 274.6)
XYZxyz(6.1105, 3.8140, 23.7019)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282988 #888728
analogous
#285988 #282988 #572888
triadic
#282988 #882829 #298828
tetradic
#282988 #882859 #888728 #288857
square
#282988 #882859 #888728 #288857
split-complementary
#282988 #885728 #598828
monochromatic
#0C0C29 #1A1B59 #282988 #3637B7 #5B5DCF

Accessibility & contrast

On white

11.91
#282988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#282988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282988
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282988#FFFFFF#000000##FFFFFF
##2829881.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #282988;
/* rgb */ color: rgb(40, 41, 136);
/* oklch */ color: oklch(35.0% 0.154 274.6);
Tailwind
colors: {
  custom: {
    50: '#7063ac',
    500: '#282988',
    950: '#000000',
  },
}
SCSS
$custom: #282988;
$custom-light: #7063ac;
$custom-dark: #000000;
JSON
{
  "hex": "#282988",
  "rgb": {
    "r": 40,
    "g": 41,
    "b": 136
  },
  "hsl": {
    "h": 239.375,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34991,
    "c": 0.15357,
    "h": 274.6
  },
  "luminance": 0.03815
}

Semantic roles & 50–950 ramp

primary
#282988
secondary
#B4B358
accent
#DC4ADE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #282988

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

Preview Lab → · Contrast checker → · Palette generator →

#282988 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva