#284CB5#284CB5

#284CB5 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.7% C 0.172 H 265.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#284CB5
RGBrgb(40, 76, 181)
HSLhsl(225, 64%, 43%)
HSVhsv(225, 78%, 71%)
CMYKcmyk(77.9%, 58%, 0%, 29%)
CIE-LABlab(35.90, 25.72, -59.29)
CIE-LCHlch(35.90, 64.63, 293.45°)
OKLaboklab(45.69% -0.0134 -0.1712)
OKLCHoklch(45.69% 0.172 265.5)
XYZxyz(11.7971, 8.9548, 44.8138)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284CB5 #B59128
analogous
#2892B5 #284CB5 #4A28B5
triadic
#284CB5 #B5284C #4CB528
tetradic
#284CB5 #B52892 #B59128 #28B54A
square
#284CB5 #B52892 #B59128 #28B54A
split-complementary
#284CB5 #B54A28 #92B528
monochromatic
#122251 #1D3783 #284CB5 #446AD6 #7792E1

Accessibility & contrast

On white

7.52
#284CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#284CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284CB5
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284CB5#FFFFFF#000000##FFFFFF
##284CB51.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB9
Deuteranopia (green-blind)
#004EB3
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #284cb5;
/* rgb */ color: rgb(40, 76, 181);
/* oklch */ color: oklch(45.7% 0.172 265.5);
Tailwind
colors: {
  custom: {
    50: '#787dcc',
    500: '#284cb5',
    950: '#000000',
  },
}
SCSS
$custom: #284cb5;
$custom-light: #787dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#284cb5",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 181
  },
  "hsl": {
    "h": 224.681,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45689,
    "c": 0.17173,
    "h": 265.5
  },
  "luminance": 0.08956
}

Semantic roles & 50–950 ramp

primary
#284CB5
secondary
#C8B270
accent
#BC41E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #284CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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