#284FA7#284FA7

#284FA7 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.2% C 0.149 H 263.6°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#284FA7
RGBrgb(40, 79, 167)
HSLhsl(222, 61%, 41%)
HSVhsv(222, 76%, 65%)
CMYKcmyk(76%, 52.7%, 0%, 34.5%)
CIE-LABlab(35.66, 18.34, -51.37)
CIE-LCHlch(35.66, 54.54, 289.64°)
OKLaboklab(45.18% -0.0167 -0.1479)
OKLCHoklch(45.18% 0.149 263.6)
XYZxyz(10.6436, 8.8319, 37.6955)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284FA7 #A78028
analogous
#288EA7 #284FA7 #4028A7
triadic
#284FA7 #A7284F #4FA728
tetradic
#284FA7 #A7288E #A78028 #28A740
square
#284FA7 #A7288E #A78028 #28A740
split-complementary
#284FA7 #A74028 #8EA728
monochromatic
#102044 #1C3876 #284FA7 #3C69D0 #6D8FDC

Accessibility & contrast

On white

7.59
#284FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284FA7
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284FA7#FFFFFF#000000##FFFFFF
##284FA71.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135AAA
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #284fa7;
/* rgb */ color: rgb(40, 79, 167);
/* oklch */ color: oklch(45.2% 0.149 263.6);
Tailwind
colors: {
  custom: {
    50: '#757fc2',
    500: '#284fa7',
    950: '#000000',
  },
}
SCSS
$custom: #284fa7;
$custom-light: #757fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#284fa7",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 221.575,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.45175,
    "c": 0.1488,
    "h": 263.6
  },
  "luminance": 0.08833
}

Semantic roles & 50–950 ramp

primary
#284FA7
secondary
#C3A768
accent
#B343E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #284FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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