#284D8B#284D8B

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

Color values

HEX#284D8B
RGBrgb(40, 77, 139)
HSLhsl(218, 55%, 35%)
HSVhsv(218, 71%, 55%)
CMYKcmyk(71.2%, 44.6%, 0%, 45.5%)
CIE-LABlab(33.18, 8.82, -38.42)
CIE-LCHlch(33.18, 39.42, 282.94°)
OKLaboklab(42.67% -0.0192 -0.1098)
OKLCHoklch(42.67% 0.111 260.1)
XYZxyz(8.1875, 7.6221, 25.4608)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284D8B #8B6628
analogous
#287E8B #284D8B #35288B
triadic
#284D8B #8B284D #4D8B28
tetradic
#284D8B #8B287E #8B6628 #288B35
square
#284D8B #8B287E #8B6628 #288B35
split-complementary
#284D8B #8B3528 #7E8B28
monochromatic
#0D182C #1A335B #284D8B #3667BB #5D88D0

Accessibility & contrast

On white

8.32
#284D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284D8B
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284D8B#FFFFFF#000000##FFFFFF
##284D8B1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F538D
Deuteranopia (green-blind)
#1E4A8A
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #284d8b;
/* rgb */ color: rgb(40, 77, 139);
/* oklch */ color: oklch(42.7% 0.111 260.1);
Tailwind
colors: {
  custom: {
    50: '#6e7ead',
    500: '#284d8b',
    950: '#000000',
  },
}
SCSS
$custom: #284d8b;
$custom-light: #6e7ead;
$custom-dark: #000000;
JSON
{
  "hex": "#284d8b",
  "rgb": {
    "r": 40,
    "g": 77,
    "b": 139
  },
  "hsl": {
    "h": 217.576,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42672,
    "c": 0.11146,
    "h": 260.1
  },
  "luminance": 0.07623
}

Semantic roles & 50–950 ramp

primary
#284D8B
secondary
#B69359
accent
#A749DF
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #284D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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