#284DB7#284DB7

#284DB7 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.1% C 0.173 H 265.4°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#284DB7
RGBrgb(40, 77, 183)
HSLhsl(224, 64%, 44%)
HSVhsv(224, 78%, 72%)
CMYKcmyk(78.1%, 57.9%, 0%, 28.2%)
CIE-LABlab(36.32, 25.82, -59.78)
CIE-LCHlch(36.32, 65.12, 293.36°)
OKLaboklab(46.06% -0.014 -0.1726)
OKLCHoklch(46.06% 0.173 265.4)
XYZxyz(12.0732, 9.1764, 45.9255)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284DB7 #B79228
analogous
#2894B7 #284DB7 #4B28B7
triadic
#284DB7 #B7284D #4DB728
tetradic
#284DB7 #B72894 #B79228 #28B74B
square
#284DB7 #B72894 #B79228 #28B74B
split-complementary
#284DB7 #B74B28 #94B728
monochromatic
#122353 #1D3885 #284DB7 #466BD6 #7893E1

Accessibility & contrast

On white

7.41
#284DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#284DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284DB7
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284DB7#FFFFFF#000000##FFFFFF
##284DB71.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #284db7;
/* rgb */ color: rgb(40, 77, 183);
/* oklch */ color: oklch(46.1% 0.173 265.4);
Tailwind
colors: {
  custom: {
    50: '#797ecd',
    500: '#284db7',
    950: '#000000',
  },
}
SCSS
$custom: #284db7;
$custom-light: #797ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#284db7",
  "rgb": {
    "r": 40,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 224.476,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46057,
    "c": 0.1732,
    "h": 265.4
  },
  "luminance": 0.09178
}

Semantic roles & 50–950 ramp

primary
#284DB7
secondary
#C9B372
accent
#BC41E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0914
muted
#7C7B82

Preview Lab

Preview with #284DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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