#284EA5#284EA5

#284EA5 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.8% C 0.147 H 263.7°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#284EA5
RGBrgb(40, 78, 165)
HSLhsl(222, 61%, 40%)
HSVhsv(222, 76%, 65%)
CMYKcmyk(75.8%, 52.7%, 0%, 35.3%)
CIE-LABlab(35.23, 18.23, -50.86)
CIE-LCHlch(35.23, 54.03, 289.72°)
OKLaboklab(44.81% -0.0161 -0.1464)
OKLCHoklch(44.81% 0.147 263.7)
XYZxyz(10.3886, 8.6154, 36.7054)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284EA5 #A57F28
analogous
#288CA5 #284EA5 #4028A5
triadic
#284EA5 #A5284E #4EA528
tetradic
#284EA5 #A5288C #A57F28 #28A540
square
#284EA5 #A5288C #A57F28 #28A540
split-complementary
#284EA5 #A54028 #8CA528
monochromatic
#101F42 #1C3774 #284EA5 #3B68CF #6C8EDB

Accessibility & contrast

On white

7.71
#284EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#284EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284EA5
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284EA5#FFFFFF#000000##FFFFFF
##284EA51.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1359A8
Deuteranopia (green-blind)
#004DA3
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #284ea5;
/* rgb */ color: rgb(40, 78, 165);
/* oklch */ color: oklch(44.8% 0.147 263.7);
Tailwind
colors: {
  custom: {
    50: '#747fc0',
    500: '#284ea5',
    950: '#000000',
  },
}
SCSS
$custom: #284ea5;
$custom-light: #747fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#284ea5",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 165
  },
  "hsl": {
    "h": 221.76,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44805,
    "c": 0.14727,
    "h": 263.7
  },
  "luminance": 0.08617
}

Semantic roles & 50–950 ramp

primary
#284EA5
secondary
#C2A667
accent
#B344E4
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #284EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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