#284ED1#284ED1

#284ED1 is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 48.5% C 0.206 H 266.0°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#284ED1
RGBrgb(40, 78, 209)
HSLhsl(227, 68%, 49%)
HSVhsv(227, 81%, 82%)
CMYKcmyk(80.9%, 62.7%, 0%, 18%)
CIE-LABlab(38.73, 34.93, -71.00)
CIE-LCHlch(38.73, 79.13, 296.19°)
OKLaboklab(48.52% -0.0142 -0.2055)
OKLCHoklch(48.52% 0.206 266)
XYZxyz(15.1040, 10.5015, 61.5402)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284ED1 #D1AB28
analogous
#28A3D1 #284ED1 #5728D1
triadic
#284ED1 #D1284E #4ED128
tetradic
#284ED1 #D128A3 #D1AB28 #28D157
square
#284ED1 #D128A3 #D1AB28 #28D157
split-complementary
#284ED1 #D15728 #A3D128
monochromatic
#14286A #1E3B9E #284ED1 #5776DF #8BA0E9

Accessibility & contrast

On white

6.77
#284ED1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#284ED1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #284ED1
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284ED1#FFFFFF#000000##FFFFFF
##284ED11.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D5
Deuteranopia (green-blind)
#0053CF
Tritanopia (blue-blind)
#007088
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #284ed1;
/* rgb */ color: rgb(40, 78, 209);
/* oklch */ color: oklch(48.5% 0.206 266.0);
Tailwind
colors: {
  custom: {
    50: '#7f7fe0',
    500: '#284ed1',
    950: '#000000',
  },
}
SCSS
$custom: #284ed1;
$custom-light: #7f7fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#284ed1",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 209
  },
  "hsl": {
    "h": 226.509,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48515,
    "c": 0.20601,
    "h": 266
  },
  "luminance": 0.10503
}

Semantic roles & 50–950 ramp

primary
#284ED1
secondary
#D3C182
accent
#C43DEB
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #284ED1

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

Preview Lab → · Contrast checker → · Palette generator →

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