#284187#284187

#284187 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.7% C 0.121 H 266.2°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#284187
RGBrgb(40, 65, 135)
HSLhsl(224, 54%, 34%)
HSVhsv(224, 70%, 53%)
CMYKcmyk(70.4%, 51.9%, 0%, 47.1%)
CIE-LABlab(29.36, 15.41, -42.09)
CIE-LCHlch(29.36, 44.82, 290.11°)
OKLaboklab(39.66% -0.008 -0.1208)
OKLCHoklch(39.66% 0.121 266.2)
XYZxyz(7.1370, 5.9803, 23.6952)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284187 #876E28
analogous
#287187 #284187 #3F2887
triadic
#284187 #872841 #418728
tetradic
#284187 #872871 #876E28 #28873F
square
#284187 #872871 #876E28 #28873F
split-complementary
#284187 #873F28 #718728
monochromatic
#0C1429 #1A2A58 #284187 #3658B6 #5B79CE

Accessibility & contrast

On white

9.56
#284187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#284187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284187
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284187#FFFFFF#000000##FFFFFF
##2841871.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184A8A
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #284187;
/* rgb */ color: rgb(40, 65, 135);
/* oklch */ color: oklch(39.7% 0.121 266.2);
Tailwind
colors: {
  custom: {
    50: '#6e75aa',
    500: '#284187',
    950: '#000000',
  },
}
SCSS
$custom: #284187;
$custom-light: #6e75aa;
$custom-dark: #000000;
JSON
{
  "hex": "#284187",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 135
  },
  "hsl": {
    "h": 224.211,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39658,
    "c": 0.12107,
    "h": 266.2
  },
  "luminance": 0.05981
}

Semantic roles & 50–950 ramp

primary
#284187
secondary
#B49B57
accent
#B74ADE
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #284187

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

Preview Lab → · Contrast checker → · Palette generator →

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