#284EB7#284EB7

#284EB7 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.3% C 0.172 H 265.1°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#284EB7
RGBrgb(40, 78, 183)
HSLhsl(224, 64%, 44%)
HSVhsv(224, 78%, 72%)
CMYKcmyk(78.1%, 57.4%, 0%, 28.2%)
CIE-LABlab(36.59, 25.16, -59.35)
CIE-LCHlch(36.59, 64.46, 292.97°)
OKLaboklab(46.26% -0.0147 -0.1713)
OKLCHoklch(46.26% 0.172 265.1)
XYZxyz(12.1437, 9.3174, 45.9490)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284EB7 #B79128
analogous
#2895B7 #284EB7 #4928B7
triadic
#284EB7 #B7284E #4EB728
tetradic
#284EB7 #B72895 #B79128 #28B749
square
#284EB7 #B72895 #B79128 #28B749
split-complementary
#284EB7 #B74928 #95B728
monochromatic
#122353 #1D3985 #284EB7 #466CD6 #7894E1

Accessibility & contrast

On white

7.33
#284EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#284EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284EB7
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284EB7#FFFFFF#000000##FFFFFF
##284EB71.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBB
Deuteranopia (green-blind)
#0050B5
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #284eb7;
/* rgb */ color: rgb(40, 78, 183);
/* oklch */ color: oklch(46.3% 0.172 265.1);
Tailwind
colors: {
  custom: {
    50: '#787fcd',
    500: '#284eb7',
    950: '#000000',
  },
}
SCSS
$custom: #284eb7;
$custom-light: #787fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#284eb7",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 183
  },
  "hsl": {
    "h": 224.056,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46257,
    "c": 0.17197,
    "h": 265.1
  },
  "luminance": 0.09319
}

Semantic roles & 50–950 ramp

primary
#284EB7
secondary
#C9B272
accent
#BB41E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A14
muted
#7C7C82

Preview Lab

Preview with #284EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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