#284DB5#284DB5

#284DB5 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.9% C 0.171 H 265.3°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#284DB5
RGBrgb(40, 77, 181)
HSLhsl(224, 64%, 43%)
HSVhsv(224, 78%, 71%)
CMYKcmyk(77.9%, 57.5%, 0%, 29%)
CIE-LABlab(36.16, 25.05, -58.86)
CIE-LCHlch(36.16, 63.97, 293.06°)
OKLaboklab(45.89% -0.0141 -0.1699)
OKLCHoklch(45.89% 0.171 265.3)
XYZxyz(11.8665, 9.0937, 44.8370)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284DB5 #B59028
analogous
#2893B5 #284DB5 #4928B5
triadic
#284DB5 #B5284D #4DB528
tetradic
#284DB5 #B52893 #B59028 #28B549
square
#284DB5 #B52893 #B59028 #28B549
split-complementary
#284DB5 #B54928 #93B528
monochromatic
#122251 #1D3883 #284DB5 #446BD6 #7792E1

Accessibility & contrast

On white

7.45
#284DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#284DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284DB5
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284DB5#FFFFFF#000000##FFFFFF
##284DB51.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #284db5;
/* rgb */ color: rgb(40, 77, 181);
/* oklch */ color: oklch(45.9% 0.171 265.3);
Tailwind
colors: {
  custom: {
    50: '#787ecc',
    500: '#284db5',
    950: '#000000',
  },
}
SCSS
$custom: #284db5;
$custom-light: #787ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#284db5",
  "rgb": {
    "r": 40,
    "g": 77,
    "b": 181
  },
  "hsl": {
    "h": 224.255,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45889,
    "c": 0.1705,
    "h": 265.3
  },
  "luminance": 0.09095
}

Semantic roles & 50–950 ramp

primary
#284DB5
secondary
#C8B170
accent
#BB41E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #284DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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