#284FB7#284FB7

#284FB7 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.5% C 0.171 H 264.8°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#284FB7
RGBrgb(40, 79, 183)
HSLhsl(224, 64%, 44%)
HSVhsv(224, 78%, 72%)
CMYKcmyk(78.1%, 56.8%, 0%, 28.2%)
CIE-LABlab(36.86, 24.49, -58.91)
CIE-LCHlch(36.86, 63.80, 292.58°)
OKLaboklab(46.46% -0.0154 -0.17)
OKLCHoklch(46.46% 0.171 264.8)
XYZxyz(12.2153, 9.4606, 45.9728)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284FB7 #B79028
analogous
#2896B7 #284FB7 #4828B7
triadic
#284FB7 #B7284F #4FB728
tetradic
#284FB7 #B72896 #B79028 #28B748
square
#284FB7 #B72896 #B79028 #28B748
split-complementary
#284FB7 #B74828 #96B728
monochromatic
#122453 #1D3985 #284FB7 #466DD6 #7895E1

Accessibility & contrast

On white

7.26
#284FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#284FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284FB7
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284FB7#FFFFFF#000000##FFFFFF
##284FB71.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#0050B5
Tritanopia (blue-blind)
#00697B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #284fb7;
/* rgb */ color: rgb(40, 79, 183);
/* oklch */ color: oklch(46.5% 0.171 264.8);
Tailwind
colors: {
  custom: {
    50: '#787fcd',
    500: '#284fb7',
    950: '#000000',
  },
}
SCSS
$custom: #284fb7;
$custom-light: #787fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#284fb7",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 183
  },
  "hsl": {
    "h": 223.636,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46458,
    "c": 0.17073,
    "h": 264.8
  },
  "luminance": 0.09462
}

Semantic roles & 50–950 ramp

primary
#284FB7
secondary
#C9B172
accent
#BA41E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A14
muted
#7C7C82

Preview Lab

Preview with #284FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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