#284FA8#284FA8

#284FA8 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.3% C 0.150 H 263.7°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#284FA8
RGBrgb(40, 79, 168)
HSLhsl(222, 62%, 41%)
HSVhsv(222, 76%, 66%)
CMYKcmyk(76.2%, 53%, 0%, 34.1%)
CIE-LABlab(35.73, 18.72, -51.85)
CIE-LCHlch(35.73, 55.12, 289.85°)
OKLaboklab(45.25% -0.0166 -0.1493)
OKLCHoklch(45.25% 0.15 263.7)
XYZxyz(10.7364, 8.8690, 38.1842)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284FA8 #A88128
analogous
#288FA8 #284FA8 #4128A8
triadic
#284FA8 #A8284F #4FA828
tetradic
#284FA8 #A8288F #A88128 #28A841
square
#284FA8 #A8288F #A88128 #28A841
split-complementary
#284FA8 #A84128 #8FA828
monochromatic
#102145 #1C3877 #284FA8 #3D6AD1 #6E90DC

Accessibility & contrast

On white

7.57
#284FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#284FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284FA8
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284FA8#FFFFFF#000000##FFFFFF
##284FA81.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105AAB
Deuteranopia (green-blind)
#004EA6
Tritanopia (blue-blind)
#006574
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #284fa8;
/* rgb */ color: rgb(40, 79, 168);
/* oklch */ color: oklch(45.3% 0.150 263.7);
Tailwind
colors: {
  custom: {
    50: '#757fc2',
    500: '#284fa8',
    950: '#000000',
  },
}
SCSS
$custom: #284fa8;
$custom-light: #757fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#284fa8",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 221.719,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45253,
    "c": 0.1502,
    "h": 263.7
  },
  "luminance": 0.0887
}

Semantic roles & 50–950 ramp

primary
#284FA8
secondary
#C3A869
accent
#B343E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #284FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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