#284FA6#284FA6

#284FA6 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.1% C 0.147 H 263.5°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#284FA6
RGBrgb(40, 79, 166)
HSLhsl(221, 61%, 40%)
HSVhsv(221, 76%, 65%)
CMYKcmyk(75.9%, 52.4%, 0%, 34.9%)
CIE-LABlab(35.59, 17.95, -50.89)
CIE-LCHlch(35.59, 53.96, 289.43°)
OKLaboklab(45.1% -0.0168 -0.1464)
OKLCHoklch(45.1% 0.147 263.5)
XYZxyz(10.5515, 8.7951, 37.2105)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284FA6 #A67F28
analogous
#288EA6 #284FA6 #4028A6
triadic
#284FA6 #A6284F #4FA628
tetradic
#284FA6 #A6288E #A67F28 #28A640
square
#284FA6 #A6288E #A67F28 #28A640
split-complementary
#284FA6 #A64028 #8EA628
monochromatic
#102043 #1C3875 #284FA6 #3B69D0 #6D8FDC

Accessibility & contrast

On white

7.61
#284FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#284FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284FA6
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284FA6#FFFFFF#000000##FFFFFF
##284FA61.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155AA9
Deuteranopia (green-blind)
#004EA4
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #284fa6;
/* rgb */ color: rgb(40, 79, 166);
/* oklch */ color: oklch(45.1% 0.147 263.5);
Tailwind
colors: {
  custom: {
    50: '#747fc1',
    500: '#284fa6',
    950: '#000000',
  },
}
SCSS
$custom: #284fa6;
$custom-light: #747fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#284fa6",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 221.429,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45097,
    "c": 0.14741,
    "h": 263.5
  },
  "luminance": 0.08796
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #284FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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