#284FB1#284FB1

#284FB1 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.0% C 0.163 H 264.4°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#284FB1
RGBrgb(40, 79, 177)
HSLhsl(223, 63%, 43%)
HSVhsv(223, 77%, 69%)
CMYKcmyk(77.4%, 55.4%, 0%, 30.6%)
CIE-LABlab(36.40, 22.19, -56.11)
CIE-LCHlch(36.40, 60.34, 291.58°)
OKLaboklab(45.97% -0.0158 -0.1618)
OKLCHoklch(45.97% 0.163 264.4)
XYZxyz(11.6041, 9.2161, 42.7538)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284FB1 #B18A28
analogous
#2893B1 #284FB1 #4628B1
triadic
#284FB1 #B1284F #4FB128
tetradic
#284FB1 #B12893 #B18A28 #28B146
square
#284FB1 #B12893 #B18A28 #28B146
split-complementary
#284FB1 #B14628 #93B128
monochromatic
#11224D #1D397F #284FB1 #426CD4 #7493E0

Accessibility & contrast

On white

7.39
#284FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#284FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284FB1
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284FB1#FFFFFF#000000##FFFFFF
##284FB11.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB4
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #284fb1;
/* rgb */ color: rgb(40, 79, 177);
/* oklch */ color: oklch(46.0% 0.163 264.4);
Tailwind
colors: {
  custom: {
    50: '#777fc9',
    500: '#284fb1',
    950: '#000000',
  },
}
SCSS
$custom: #284fb1;
$custom-light: #777fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#284fb1",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 177
  },
  "hsl": {
    "h": 222.92,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45968,
    "c": 0.1626,
    "h": 264.4
  },
  "luminance": 0.09217
}

Semantic roles & 50–950 ramp

primary
#284FB1
secondary
#C7AE6E
accent
#B742E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #284FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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