#284C8F#284C8F

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

Color values

HEX#284C8F
RGBrgb(40, 76, 143)
HSLhsl(219, 56%, 36%)
HSVhsv(219, 72%, 56%)
CMYKcmyk(72%, 46.9%, 0%, 43.9%)
CIE-LABlab(33.14, 11.04, -40.93)
CIE-LCHlch(33.14, 42.40, 285.10°)
OKLaboklab(42.72% -0.0174 -0.1172)
OKLCHoklch(42.72% 0.119 261.6)
XYZxyz(8.4157, 7.6023, 27.0051)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C8F #8F6B28
analogous
#287F8F #284C8F #37288F
triadic
#284C8F #8F284C #4C8F28
tetradic
#284C8F #8F287F #8F6B28 #288F37
square
#284C8F #8F287F #8F6B28 #288F37
split-complementary
#284C8F #8F3728 #7F8F28
monochromatic
#0D192F #1B335F #284C8F #3565BF #5F87D2

Accessibility & contrast

On white

8.33
#284C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#284C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284C8F
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284C8F#FFFFFF#000000##FFFFFF
##284C8F1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5392
Deuteranopia (green-blind)
#154A8E
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #284c8f;
/* rgb */ color: rgb(40, 76, 143);
/* oklch */ color: oklch(42.7% 0.119 261.6);
Tailwind
colors: {
  custom: {
    50: '#6f7db0',
    500: '#284c8f',
    950: '#000000',
  },
}
SCSS
$custom: #284c8f;
$custom-light: #6f7db0;
$custom-dark: #000000;
JSON
{
  "hex": "#284c8f",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 143
  },
  "hsl": {
    "h": 219.029,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42722,
    "c": 0.11851,
    "h": 261.6
  },
  "luminance": 0.07603
}

Semantic roles & 50–950 ramp

primary
#284C8F
secondary
#B8975B
accent
#AB48E0
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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