#284C8B#284C8B

#284C8B is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.4% C 0.113 H 260.7°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#284C8B
RGBrgb(40, 76, 139)
HSLhsl(218, 55%, 35%)
HSVhsv(218, 71%, 55%)
CMYKcmyk(71.2%, 45.3%, 0%, 45.5%)
CIE-LABlab(32.88, 9.49, -38.90)
CIE-LCHlch(32.88, 40.04, 283.72°)
OKLaboklab(42.44% -0.0182 -0.1112)
OKLCHoklch(42.44% 0.113 260.7)
XYZxyz(8.1180, 7.4832, 25.4377)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C8B #8B6728
analogous
#287D8B #284C8B #36288B
triadic
#284C8B #8B284C #4C8B28
tetradic
#284C8B #8B287D #8B6728 #288B36
square
#284C8B #8B287D #8B6728 #288B36
split-complementary
#284C8B #8B3628 #7D8B28
monochromatic
#0D182C #1A325B #284C8B #3666BB #5D87D0

Accessibility & contrast

On white

8.41
#284C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#284C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284C8B
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284C8B#FFFFFF#000000##FFFFFF
##284C8B1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D528D
Deuteranopia (green-blind)
#1B498A
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #284c8b;
/* rgb */ color: rgb(40, 76, 139);
/* oklch */ color: oklch(42.4% 0.113 260.7);
Tailwind
colors: {
  custom: {
    50: '#6e7dad',
    500: '#284c8b',
    950: '#000000',
  },
}
SCSS
$custom: #284c8b;
$custom-light: #6e7dad;
$custom-dark: #000000;
JSON
{
  "hex": "#284c8b",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 139
  },
  "hsl": {
    "h": 218.182,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4244,
    "c": 0.1127,
    "h": 260.7
  },
  "luminance": 0.07484
}

Semantic roles & 50–950 ramp

primary
#284C8B
secondary
#B69459
accent
#A849DF
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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