#283987#283987

#283987 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.132 H 269.7°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#283987
RGBrgb(40, 57, 135)
HSLhsl(229, 54%, 34%)
HSVhsv(229, 70%, 53%)
CMYKcmyk(70.4%, 57.8%, 0%, 47.1%)
CIE-LABlab(27.09, 20.91, -45.76)
CIE-LCHlch(27.09, 50.31, 294.56°)
OKLaboklab(37.94% -0.0006 -0.1317)
OKLCHoklch(37.94% 0.132 269.7)
XYZxyz(6.7099, 5.1260, 23.5528)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283987 #877628
analogous
#286987 #283987 #472887
triadic
#283987 #872839 #398728
tetradic
#283987 #872869 #877628 #288747
square
#283987 #872869 #877628 #288747
split-complementary
#283987 #874728 #698728
monochromatic
#0C1129 #1A2558 #283987 #364DB6 #5B70CE

Accessibility & contrast

On white

10.37
#283987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #283987
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283987#FFFFFF#000000##FFFFFF
##2839871.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #283987;
/* rgb */ color: rgb(40, 57, 135);
/* oklch */ color: oklch(37.9% 0.132 269.7);
Tailwind
colors: {
  custom: {
    50: '#6f6fab',
    500: '#283987',
    950: '#000000',
  },
}
SCSS
$custom: #283987;
$custom-light: #6f6fab;
$custom-dark: #000000;
JSON
{
  "hex": "#283987",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 135
  },
  "hsl": {
    "h": 229.263,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37943,
    "c": 0.13174,
    "h": 269.7
  },
  "luminance": 0.05127
}

Semantic roles & 50–950 ramp

primary
#283987
secondary
#B4A357
accent
#C34ADE
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #283987

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

Preview Lab → · Contrast checker → · Palette generator →

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