#284FB5#284FB5

#284FB5 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.3% C 0.168 H 264.7°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#284FB5
RGBrgb(40, 79, 181)
HSLhsl(223, 64%, 43%)
HSVhsv(223, 78%, 71%)
CMYKcmyk(77.9%, 56.4%, 0%, 29%)
CIE-LABlab(36.70, 23.73, -57.98)
CIE-LCHlch(36.70, 62.65, 292.26°)
OKLaboklab(46.29% -0.0155 -0.1673)
OKLCHoklch(46.29% 0.168 264.7)
XYZxyz(12.0086, 9.3779, 44.8843)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284FB5 #B58E28
analogous
#2895B5 #284FB5 #4728B5
triadic
#284FB5 #B5284F #4FB528
tetradic
#284FB5 #B52895 #B58E28 #28B547
square
#284FB5 #B52895 #B58E28 #28B547
split-complementary
#284FB5 #B54728 #95B528
monochromatic
#122351 #1D3983 #284FB5 #446DD6 #7794E1

Accessibility & contrast

On white

7.30
#284FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#284FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284FB5
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284FB5#FFFFFF#000000##FFFFFF
##284FB51.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#0050B3
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #284fb5;
/* rgb */ color: rgb(40, 79, 181);
/* oklch */ color: oklch(46.3% 0.168 264.7);
Tailwind
colors: {
  custom: {
    50: '#787fcc',
    500: '#284fb5',
    950: '#000000',
  },
}
SCSS
$custom: #284fb5;
$custom-light: #787fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#284fb5",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 181
  },
  "hsl": {
    "h": 223.404,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.46294,
    "c": 0.16804,
    "h": 264.7
  },
  "luminance": 0.09379
}

Semantic roles & 50–950 ramp

primary
#284FB5
secondary
#C8B070
accent
#B941E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #284FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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