#284EB5#284EB5

#284EB5 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.1% C 0.169 H 265.0°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#284EB5
RGBrgb(40, 78, 181)
HSLhsl(224, 64%, 43%)
HSVhsv(224, 78%, 71%)
CMYKcmyk(77.9%, 56.9%, 0%, 29%)
CIE-LABlab(36.43, 24.39, -58.42)
CIE-LCHlch(36.43, 63.31, 292.66°)
OKLaboklab(46.09% -0.0148 -0.1686)
OKLCHoklch(46.09% 0.169 265)
XYZxyz(11.9370, 9.2347, 44.8605)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284EB5 #B58F28
analogous
#2894B5 #284EB5 #4828B5
triadic
#284EB5 #B5284E #4EB528
tetradic
#284EB5 #B52894 #B58F28 #28B548
square
#284EB5 #B52894 #B58F28 #28B548
split-complementary
#284EB5 #B54828 #94B528
monochromatic
#122351 #1D3883 #284EB5 #446CD6 #7793E1

Accessibility & contrast

On white

7.38
#284EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#284EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284EB5
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284EB5#FFFFFF#000000##FFFFFF
##284EB51.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #284eb5;
/* rgb */ color: rgb(40, 78, 181);
/* oklch */ color: oklch(46.1% 0.169 265.0);
Tailwind
colors: {
  custom: {
    50: '#787fcc',
    500: '#284eb5',
    950: '#000000',
  },
}
SCSS
$custom: #284eb5;
$custom-light: #787fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#284eb5",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 181
  },
  "hsl": {
    "h": 223.83,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.46091,
    "c": 0.16927,
    "h": 265
  },
  "luminance": 0.09236
}

Semantic roles & 50–950 ramp

primary
#284EB5
secondary
#C8B170
accent
#BA41E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #284EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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