#284EA8#284EA8

#284EA8 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.0% C 0.151 H 264.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#284EA8
RGBrgb(40, 78, 168)
HSLhsl(222, 62%, 41%)
HSVhsv(222, 76%, 66%)
CMYKcmyk(76.2%, 53.6%, 0%, 34.1%)
CIE-LABlab(35.45, 19.39, -52.30)
CIE-LCHlch(35.45, 55.78, 290.34°)
OKLaboklab(45.04% -0.0158 -0.1506)
OKLCHoklch(45.04% 0.151 264)
XYZxyz(10.6648, 8.7259, 38.1604)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284EA8 #A88228
analogous
#288EA8 #284EA8 #4228A8
triadic
#284EA8 #A8284E #4EA828
tetradic
#284EA8 #A8288E #A88228 #28A842
square
#284EA8 #A8288E #A88228 #28A842
split-complementary
#284EA8 #A84228 #8EA828
monochromatic
#102045 #1C3777 #284EA8 #3D68D1 #6E8FDC

Accessibility & contrast

On white

7.65
#284EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#284EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284EA8
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284EA8#FFFFFF#000000##FFFFFF
##284EA81.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5AAB
Deuteranopia (green-blind)
#004EA6
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #284ea8;
/* rgb */ color: rgb(40, 78, 168);
/* oklch */ color: oklch(45.0% 0.151 264.0);
Tailwind
colors: {
  custom: {
    50: '#757fc2',
    500: '#284ea8',
    950: '#000000',
  },
}
SCSS
$custom: #284ea8;
$custom-light: #757fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#284ea8",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 168
  },
  "hsl": {
    "h": 222.188,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4504,
    "c": 0.15145,
    "h": 264
  },
  "luminance": 0.08727
}

Semantic roles & 50–950 ramp

primary
#284EA8
secondary
#C3A869
accent
#B543E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #284EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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