#283988#283988

#283988 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.0% C 0.133 H 269.8°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#283988
RGBrgb(40, 57, 136)
HSLhsl(229, 55%, 35%)
HSVhsv(229, 71%, 53%)
CMYKcmyk(70.6%, 58.1%, 0%, 46.7%)
CIE-LABlab(27.17, 21.29, -46.26)
CIE-LCHlch(27.17, 50.92, 294.72°)
OKLaboklab(38.03% -0.0006 -0.1332)
OKLCHoklch(38.03% 0.133 269.8)
XYZxyz(6.7806, 5.1543, 23.9253)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283988 #887728
analogous
#286988 #283988 #472888
triadic
#283988 #882839 #398828
tetradic
#283988 #882869 #887728 #288847
square
#283988 #882869 #887728 #288847
split-complementary
#283988 #884728 #698828
monochromatic
#0C1129 #1A2559 #283988 #364DB7 #5B70CF

Accessibility & contrast

On white

10.34
#283988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#283988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283988
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283988#FFFFFF#000000##FFFFFF
##2839881.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #283988;
/* rgb */ color: rgb(40, 57, 136);
/* oklch */ color: oklch(38.0% 0.133 269.8);
Tailwind
colors: {
  custom: {
    50: '#6f6fab',
    500: '#283988',
    950: '#000000',
  },
}
SCSS
$custom: #283988;
$custom-light: #6f6fab;
$custom-dark: #000000;
JSON
{
  "hex": "#283988",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 136
  },
  "hsl": {
    "h": 229.375,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38027,
    "c": 0.13319,
    "h": 269.8
  },
  "luminance": 0.05155
}

Semantic roles & 50–950 ramp

primary
#283988
secondary
#B4A458
accent
#C44ADE
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #283988

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

Preview Lab → · Contrast checker → · Palette generator →

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