#284C86#284C86

#284C86 is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.1% C 0.105 H 259.5°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#284C86
RGBrgb(40, 76, 134)
HSLhsl(217, 54%, 34%)
HSVhsv(217, 70%, 53%)
CMYKcmyk(70.1%, 43.3%, 0%, 47.5%)
CIE-LABlab(32.57, 7.57, -36.33)
CIE-LCHlch(32.57, 37.10, 281.77°)
OKLaboklab(42.1% -0.0192 -0.1037)
OKLCHoklch(42.1% 0.105 259.5)
XYZxyz(7.7610, 7.3404, 23.5575)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C86 #866228
analogous
#287B86 #284C86 #332886
triadic
#284C86 #86284C #4C8628
tetradic
#284C86 #86287B #866228 #288633
square
#284C86 #86287B #866228 #288633
split-complementary
#284C86 #863328 #7B8628
monochromatic
#0C1728 #1A3157 #284C86 #3667B5 #5B87CE

Accessibility & contrast

On white

8.51
#284C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#284C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284C86
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284C86#FFFFFF#000000##FFFFFF
##284C861.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315188
Deuteranopia (green-blind)
#224985
Tritanopia (blue-blind)
#005962
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #284c86;
/* rgb */ color: rgb(40, 76, 134);
/* oklch */ color: oklch(42.1% 0.105 259.5);
Tailwind
colors: {
  custom: {
    50: '#6d7da9',
    500: '#284c86',
    950: '#000000',
  },
}
SCSS
$custom: #284c86;
$custom-light: #6d7da9;
$custom-dark: #000000;
JSON
{
  "hex": "#284c86",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 134
  },
  "hsl": {
    "h": 217.021,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42097,
    "c": 0.10543,
    "h": 259.5
  },
  "luminance": 0.07341
}

Semantic roles & 50–950 ramp

primary
#284C86
secondary
#B39057
accent
#A54ADD
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #284C86

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

Preview Lab → · Contrast checker → · Palette generator →

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