#284FA5#284FA5

#284FA5 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.0% C 0.146 H 263.4°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#284FA5
RGBrgb(40, 79, 165)
HSLhsl(221, 61%, 40%)
HSVhsv(221, 76%, 65%)
CMYKcmyk(75.8%, 52.1%, 0%, 35.3%)
CIE-LABlab(35.52, 17.56, -50.40)
CIE-LCHlch(35.52, 53.38, 289.21°)
OKLaboklab(45.02% -0.0169 -0.145)
OKLCHoklch(45.02% 0.146 263.4)
XYZxyz(10.4602, 8.7585, 36.7293)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284FA5 #A57E28
analogous
#288DA5 #284FA5 #3F28A5
triadic
#284FA5 #A5284F #4FA528
tetradic
#284FA5 #A5288D #A57E28 #28A53F
square
#284FA5 #A5288D #A57E28 #28A53F
split-complementary
#284FA5 #A53F28 #8DA528
monochromatic
#102042 #1C3774 #284FA5 #3B69CF #6C8FDB

Accessibility & contrast

On white

7.63
#284FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#284FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284FA5
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284FA5#FFFFFF#000000##FFFFFF
##284FA51.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175AA8
Deuteranopia (green-blind)
#004EA3
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #284fa5;
/* rgb */ color: rgb(40, 79, 165);
/* oklch */ color: oklch(45.0% 0.146 263.4);
Tailwind
colors: {
  custom: {
    50: '#747fc0',
    500: '#284fa5',
    950: '#000000',
  },
}
SCSS
$custom: #284fa5;
$custom-light: #747fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#284fa5",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 221.28,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4502,
    "c": 0.14601,
    "h": 263.4
  },
  "luminance": 0.0876
}

Semantic roles & 50–950 ramp

primary
#284FA5
secondary
#C2A667
accent
#B244E4
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #284FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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