#284D9A#284D9A

#284D9A is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.7% C 0.133 H 262.8°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#284D9A
RGBrgb(40, 77, 154)
HSLhsl(221, 59%, 38%)
HSVhsv(221, 74%, 60%)
CMYKcmyk(74%, 50%, 0%, 39.6%)
CIE-LABlab(34.17, 14.64, -45.96)
CIE-LCHlch(34.17, 48.23, 287.66°)
OKLaboklab(43.75% -0.0166 -0.132)
OKLCHoklch(43.75% 0.133 262.8)
XYZxyz(9.3596, 8.0910, 31.6340)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284D9A #9A7528
analogous
#28869A #284D9A #3C289A
triadic
#284D9A #9A284D #4D9A28
tetradic
#284D9A #9A2886 #9A7528 #289A3C
square
#284D9A #9A2886 #9A7528 #289A3C
split-complementary
#284D9A #9A3C28 #869A28
monochromatic
#0F1C39 #1B3569 #284D9A #3565CA #658AD7

Accessibility & contrast

On white

8.02
#284D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#284D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284D9A
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284D9A#FFFFFF#000000##FFFFFF
##284D9A1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21569D
Deuteranopia (green-blind)
#004B98
Tritanopia (blue-blind)
#005F6C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #284d9a;
/* rgb */ color: rgb(40, 77, 154);
/* oklch */ color: oklch(43.7% 0.133 262.8);
Tailwind
colors: {
  custom: {
    50: '#727eb8',
    500: '#284d9a',
    950: '#000000',
  },
}
SCSS
$custom: #284d9a;
$custom-light: #727eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#284d9a",
  "rgb": {
    "r": 40,
    "g": 77,
    "b": 154
  },
  "hsl": {
    "h": 220.526,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.43749,
    "c": 0.13303,
    "h": 262.8
  },
  "luminance": 0.08092
}

Semantic roles & 50–950 ramp

primary
#284D9A
secondary
#BD9F61
accent
#AF46E2
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #284D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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