#284C8E#284C8E

#284C8E is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.7% C 0.117 H 261.4°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#284C8E
RGBrgb(40, 76, 142)
HSLhsl(219, 56%, 36%)
HSVhsv(219, 72%, 56%)
CMYKcmyk(71.8%, 46.5%, 0%, 44.3%)
CIE-LABlab(33.08, 10.65, -40.43)
CIE-LCHlch(33.08, 41.81, 284.76°)
OKLaboklab(42.65% -0.0176 -0.1157)
OKLCHoklch(42.65% 0.117 261.4)
XYZxyz(8.3403, 7.5721, 26.6080)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C8E #8E6A28
analogous
#287F8E #284C8E #37288E
triadic
#284C8E #8E284C #4C8E28
tetradic
#284C8E #8E287F #8E6A28 #288E37
square
#284C8E #8E287F #8E6A28 #288E37
split-complementary
#284C8E #8E3728 #7F8E28
monochromatic
#0D192F #1B325E #284C8E #3566BE #5F87D2

Accessibility & contrast

On white

8.35
#284C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#284C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284C8E
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284C8E#FFFFFF#000000##FFFFFF
##284C8E1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5390
Deuteranopia (green-blind)
#17498D
Tritanopia (blue-blind)
#005B66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #284c8e;
/* rgb */ color: rgb(40, 76, 142);
/* oklch */ color: oklch(42.7% 0.117 261.4);
Tailwind
colors: {
  custom: {
    50: '#6f7daf',
    500: '#284c8e',
    950: '#000000',
  },
}
SCSS
$custom: #284c8e;
$custom-light: #6f7daf;
$custom-dark: #000000;
JSON
{
  "hex": "#284c8e",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 142
  },
  "hsl": {
    "h": 218.824,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42651,
    "c": 0.11706,
    "h": 261.4
  },
  "luminance": 0.07573
}

Semantic roles & 50–950 ramp

primary
#284C8E
secondary
#B7975B
accent
#AA48DF
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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