#284CD1#284CD1

#284CD1 is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.2% C 0.208 H 266.4°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#284CD1
RGBrgb(40, 76, 209)
HSLhsl(227, 68%, 49%)
HSVhsv(227, 81%, 82%)
CMYKcmyk(80.9%, 63.6%, 0%, 18%)
CIE-LABlab(38.24, 36.20, -71.81)
CIE-LCHlch(38.24, 80.42, 296.76°)
OKLaboklab(48.15% -0.0132 -0.2079)
OKLCHoklch(48.15% 0.208 266.4)
XYZxyz(14.9641, 10.2217, 61.4935)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284CD1 #D1AD28
analogous
#28A1D1 #284CD1 #5928D1
triadic
#284CD1 #D1284C #4CD128
tetradic
#284CD1 #D128A1 #D1AD28 #28D159
square
#284CD1 #D128A1 #D1AD28 #28D159
split-complementary
#284CD1 #D15928 #A1D128
monochromatic
#14276A #1E399E #284CD1 #5774DF #8B9FE9

Accessibility & contrast

On white

6.90
#284CD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#284CD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #284CD1
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284CD1#FFFFFF#000000##FFFFFF
##284CD11.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D5
Deuteranopia (green-blind)
#0052CF
Tritanopia (blue-blind)
#006F87
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #284cd1;
/* rgb */ color: rgb(40, 76, 209);
/* oklch */ color: oklch(48.2% 0.208 266.4);
Tailwind
colors: {
  custom: {
    50: '#7f7de0',
    500: '#284cd1',
    950: '#000000',
  },
}
SCSS
$custom: #284cd1;
$custom-light: #7f7de0;
$custom-dark: #000000;
JSON
{
  "hex": "#284cd1",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 209
  },
  "hsl": {
    "h": 227.219,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48153,
    "c": 0.20832,
    "h": 266.4
  },
  "luminance": 0.10223
}

Semantic roles & 50–950 ramp

primary
#284CD1
secondary
#D3C182
accent
#C63DEB
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #284CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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