#284CA5#284CA5

#284CA5 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.4% C 0.150 H 264.5°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#284CA5
RGBrgb(40, 76, 165)
HSLhsl(223, 61%, 40%)
HSVhsv(223, 76%, 65%)
CMYKcmyk(75.8%, 53.9%, 0%, 35.3%)
CIE-LABlab(34.67, 19.57, -51.77)
CIE-LCHlch(34.67, 55.34, 290.71°)
OKLaboklab(44.38% -0.0145 -0.1491)
OKLCHoklch(44.38% 0.15 264.5)
XYZxyz(10.2486, 8.3355, 36.6588)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284CA5 #A58128
analogous
#288AA5 #284CA5 #4228A5
triadic
#284CA5 #A5284C #4CA528
tetradic
#284CA5 #A5288A #A58128 #28A542
square
#284CA5 #A5288A #A58128 #28A542
split-complementary
#284CA5 #A54228 #8AA528
monochromatic
#101F42 #1C3574 #284CA5 #3B66CF #6C8CDB

Accessibility & contrast

On white

7.87
#284CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#284CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284CA5
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284CA5#FFFFFF#000000##FFFFFF
##284CA51.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0758A8
Deuteranopia (green-blind)
#004CA3
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #284ca5;
/* rgb */ color: rgb(40, 76, 165);
/* oklch */ color: oklch(44.4% 0.150 264.5);
Tailwind
colors: {
  custom: {
    50: '#747dc0',
    500: '#284ca5',
    950: '#000000',
  },
}
SCSS
$custom: #284ca5;
$custom-light: #747dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#284ca5",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 165
  },
  "hsl": {
    "h": 222.72,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4438,
    "c": 0.1498,
    "h": 264.5
  },
  "luminance": 0.08337
}

Semantic roles & 50–950 ramp

primary
#284CA5
secondary
#C2A867
accent
#B644E4
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #284CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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