#284186#284186

#284186 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.6% C 0.120 H 266.1°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#284186
RGBrgb(40, 65, 134)
HSLhsl(224, 54%, 34%)
HSVhsv(224, 70%, 53%)
CMYKcmyk(70.1%, 51.5%, 0%, 47.5%)
CIE-LABlab(29.29, 15.03, -41.58)
CIE-LCHlch(29.29, 44.21, 289.87°)
OKLaboklab(39.58% -0.0082 -0.1193)
OKLCHoklch(39.58% 0.12 266.1)
XYZxyz(7.0669, 5.9522, 23.3261)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284186 #866D28
analogous
#287086 #284186 #3E2886
triadic
#284186 #862841 #418628
tetradic
#284186 #862870 #866D28 #28863E
square
#284186 #862870 #866D28 #28863E
split-complementary
#284186 #863E28 #708628
monochromatic
#0C1328 #1A2A57 #284186 #3658B5 #5B79CE

Accessibility & contrast

On white

9.59
#284186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#284186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284186
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284186#FFFFFF#000000##FFFFFF
##2841861.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4A88
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #284186;
/* rgb */ color: rgb(40, 65, 134);
/* oklch */ color: oklch(39.6% 0.120 266.1);
Tailwind
colors: {
  custom: {
    50: '#6e75aa',
    500: '#284186',
    950: '#000000',
  },
}
SCSS
$custom: #284186;
$custom-light: #6e75aa;
$custom-dark: #000000;
JSON
{
  "hex": "#284186",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 134
  },
  "hsl": {
    "h": 224.043,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39581,
    "c": 0.11959,
    "h": 266.1
  },
  "luminance": 0.05953
}

Semantic roles & 50–950 ramp

primary
#284186
secondary
#B39B57
accent
#B64ADD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #284186

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

Preview Lab → · Contrast checker → · Palette generator →

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