#284A9D#284A9D

#284A9D is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.3% C 0.141 H 264.5°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#284A9D
RGBrgb(40, 74, 157)
HSLhsl(223, 59%, 39%)
HSVhsv(223, 75%, 62%)
CMYKcmyk(74.5%, 52.9%, 0%, 38.4%)
CIE-LABlab(33.52, 17.82, -48.82)
CIE-LCHlch(33.52, 51.97, 290.05°)
OKLaboklab(43.32% -0.0136 -0.1404)
OKLCHoklch(43.32% 0.141 264.5)
XYZxyz(9.4075, 7.7820, 32.8980)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284A9D #9D7B28
analogous
#28849D #284A9D #40289D
triadic
#284A9D #9D284A #4A9D28
tetradic
#284A9D #9D2884 #9D7B28 #289D40
square
#284A9D #9D2884 #9D7B28 #289D40
split-complementary
#284A9D #9D4028 #849D28
monochromatic
#0F1C3B #1C336C #284A9D #3662CC #6788D8

Accessibility & contrast

On white

8.21
#284A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#284A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284A9D
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284A9D#FFFFFF#000000##FFFFFF
##284A9D1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1254A0
Deuteranopia (green-blind)
#004A9B
Tritanopia (blue-blind)
#005E6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #284a9d;
/* rgb */ color: rgb(40, 74, 157);
/* oklch */ color: oklch(43.3% 0.141 264.5);
Tailwind
colors: {
  custom: {
    50: '#737cba',
    500: '#284a9d',
    950: '#000000',
  },
}
SCSS
$custom: #284a9d;
$custom-light: #737cba;
$custom-dark: #000000;
JSON
{
  "hex": "#284a9d",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 157
  },
  "hsl": {
    "h": 222.564,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43324,
    "c": 0.14111,
    "h": 264.5
  },
  "luminance": 0.07783
}

Semantic roles & 50–950 ramp

primary
#284A9D
secondary
#BEA462
accent
#B545E3
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #284A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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