#284EA1#284EA1

#284EA1 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.5% C 0.142 H 263.3°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#284EA1
RGBrgb(40, 78, 161)
HSLhsl(221, 60%, 39%)
HSVhsv(221, 75%, 63%)
CMYKcmyk(75.2%, 51.6%, 0%, 36.9%)
CIE-LABlab(34.95, 16.68, -48.93)
CIE-LCHlch(34.95, 51.69, 288.83°)
OKLaboklab(44.5% -0.0165 -0.1407)
OKLCHoklch(44.5% 0.142 263.3)
XYZxyz(10.0302, 8.4720, 34.8179)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284EA1 #A17B28
analogous
#288BA1 #284EA1 #3F28A1
triadic
#284EA1 #A1284E #4EA128
tetradic
#284EA1 #A1288B #A17B28 #28A13F
square
#284EA1 #A1288B #A17B28 #28A13F
split-complementary
#284EA1 #A13F28 #8BA128
monochromatic
#101F3F #1C3670 #284EA1 #3967CE #6A8DDA

Accessibility & contrast

On white

7.79
#284EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#284EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284EA1
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284EA1#FFFFFF#000000##FFFFFF
##284EA11.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A58A4
Deuteranopia (green-blind)
#004D9F
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #284ea1;
/* rgb */ color: rgb(40, 78, 161);
/* oklch */ color: oklch(44.5% 0.142 263.3);
Tailwind
colors: {
  custom: {
    50: '#737fbd',
    500: '#284ea1',
    950: '#000000',
  },
}
SCSS
$custom: #284ea1;
$custom-light: #737fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#284ea1",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 161
  },
  "hsl": {
    "h": 221.157,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44497,
    "c": 0.14167,
    "h": 263.3
  },
  "luminance": 0.08473
}

Semantic roles & 50–950 ramp

primary
#284EA1
secondary
#C0A365
accent
#B144E3
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #284EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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