#284C8D#284C8D

#284C8D is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.6% C 0.116 H 261.2°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#284C8D
RGBrgb(40, 76, 141)
HSLhsl(219, 56%, 35%)
HSVhsv(219, 72%, 55%)
CMYKcmyk(71.6%, 46.1%, 0%, 44.7%)
CIE-LABlab(33.01, 10.27, -39.92)
CIE-LCHlch(33.01, 41.22, 284.42°)
OKLaboklab(42.58% -0.0178 -0.1142)
OKLCHoklch(42.58% 0.116 261.2)
XYZxyz(8.2655, 7.5422, 26.2143)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C8D #8D6928
analogous
#287E8D #284C8D #36288D
triadic
#284C8D #8D284C #4C8D28
tetradic
#284C8D #8D287E #8D6928 #288D36
square
#284C8D #8D287E #8D6928 #288D36
split-complementary
#284C8D #8D3628 #7E8D28
monochromatic
#0D192E #1A325D #284C8D #3666BD #5E87D1

Accessibility & contrast

On white

8.37
#284C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284C8D
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284C8D#FFFFFF#000000##FFFFFF
##284C8D1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C538F
Deuteranopia (green-blind)
#18498C
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #284c8d;
/* rgb */ color: rgb(40, 76, 141);
/* oklch */ color: oklch(42.6% 0.116 261.2);
Tailwind
colors: {
  custom: {
    50: '#6f7daf',
    500: '#284c8d',
    950: '#000000',
  },
}
SCSS
$custom: #284c8d;
$custom-light: #6f7daf;
$custom-dark: #000000;
JSON
{
  "hex": "#284c8d",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 141
  },
  "hsl": {
    "h": 218.614,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4258,
    "c": 0.11561,
    "h": 261.2
  },
  "luminance": 0.07543
}

Semantic roles & 50–950 ramp

primary
#284C8D
secondary
#B7965A
accent
#A949DF
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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