#284786#284786

#284786 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.9% C 0.112 H 262.8°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#284786
RGBrgb(40, 71, 134)
HSLhsl(220, 54%, 34%)
HSVhsv(220, 70%, 53%)
CMYKcmyk(70.1%, 47%, 0%, 47.5%)
CIE-LABlab(31.06, 10.93, -38.74)
CIE-LCHlch(31.06, 40.25, 285.76°)
OKLaboklab(40.94% -0.0141 -0.1108)
OKLCHoklch(40.94% 0.112 262.8)
XYZxyz(7.4299, 6.6781, 23.4471)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284786 #866728
analogous
#287686 #284786 #382886
triadic
#284786 #862847 #478628
tetradic
#284786 #862876 #866728 #288638
square
#284786 #862876 #866728 #288638
split-complementary
#284786 #863828 #768628
monochromatic
#0C1528 #1A2E57 #284786 #3660B5 #5B81CE

Accessibility & contrast

On white

8.99
#284786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#284786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284786
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284786#FFFFFF#000000##FFFFFF
##2847861.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274E88
Deuteranopia (green-blind)
#154585
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #284786;
/* rgb */ color: rgb(40, 71, 134);
/* oklch */ color: oklch(40.9% 0.112 262.8);
Tailwind
colors: {
  custom: {
    50: '#6e79aa',
    500: '#284786',
    950: '#000000',
  },
}
SCSS
$custom: #284786;
$custom-light: #6e79aa;
$custom-dark: #000000;
JSON
{
  "hex": "#284786",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 134
  },
  "hsl": {
    "h": 220.213,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40935,
    "c": 0.11173,
    "h": 262.8
  },
  "luminance": 0.06679
}

Semantic roles & 50–950 ramp

primary
#284786
secondary
#B39557
accent
#AD4ADD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284786

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

Preview Lab → · Contrast checker → · Palette generator →

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