#284F86#284F86

#284F86 is a dark, moderate blue. Relative luminance 0.078; OKLCH L 42.8% C 0.102 H 257.3°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#284F86
RGBrgb(40, 79, 134)
HSLhsl(215, 54%, 34%)
HSVhsv(215, 70%, 53%)
CMYKcmyk(70.1%, 41%, 0%, 47.5%)
CIE-LABlab(33.49, 5.57, -34.87)
CIE-LCHlch(33.49, 35.31, 279.08°)
OKLaboklab(42.81% -0.0223 -0.0993)
OKLCHoklch(42.81% 0.102 257.3)
XYZxyz(7.9726, 7.7635, 23.6280)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F86 #865F28
analogous
#287E86 #284F86 #302886
triadic
#284F86 #86284F #4F8628
tetradic
#284F86 #86287E #865F28 #288630
square
#284F86 #86287E #865F28 #288630
split-complementary
#284F86 #863028 #7E8628
monochromatic
#0C1728 #1A3357 #284F86 #366BB5 #5B8ACE

Accessibility & contrast

On white

8.23
#284F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#284F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F86
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F86#FFFFFF#000000##FFFFFF
##284F861.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365388
Deuteranopia (green-blind)
#274B85
Tritanopia (blue-blind)
#005C64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #284f86;
/* rgb */ color: rgb(40, 79, 134);
/* oklch */ color: oklch(42.8% 0.102 257.3);
Tailwind
colors: {
  custom: {
    50: '#6d7fa9',
    500: '#284f86',
    950: '#000000',
  },
}
SCSS
$custom: #284f86;
$custom-light: #6d7fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#284f86",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 134
  },
  "hsl": {
    "h": 215.106,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42807,
    "c": 0.10181,
    "h": 257.3
  },
  "luminance": 0.07764
}

Semantic roles & 50–950 ramp

primary
#284F86
secondary
#B38D57
accent
#A04ADD
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #284F86

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

Preview Lab → · Contrast checker → · Palette generator →

#284F86 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva