#284CB7#284CB7

#284CB7 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.9% C 0.174 H 265.6°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#284CB7
RGBrgb(40, 76, 183)
HSLhsl(225, 64%, 44%)
HSVhsv(225, 78%, 72%)
CMYKcmyk(78.1%, 58.5%, 0%, 28.2%)
CIE-LABlab(36.06, 26.48, -60.21)
CIE-LCHlch(36.06, 65.78, 293.74°)
OKLaboklab(45.86% -0.0133 -0.1739)
OKLCHoklch(45.86% 0.174 265.6)
XYZxyz(12.0037, 9.0375, 45.9023)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284CB7 #B79328
analogous
#2893B7 #284CB7 #4B28B7
triadic
#284CB7 #B7284C #4CB728
tetradic
#284CB7 #B72893 #B79328 #28B74B
square
#284CB7 #B72893 #B79328 #28B74B
split-complementary
#284CB7 #B74B28 #93B728
monochromatic
#122253 #1D3785 #284CB7 #466AD6 #7892E1

Accessibility & contrast

On white

7.48
#284CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#284CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284CB7
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284CB7#FFFFFF#000000##FFFFFF
##284CB71.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #284cb7;
/* rgb */ color: rgb(40, 76, 183);
/* oklch */ color: oklch(45.9% 0.174 265.6);
Tailwind
colors: {
  custom: {
    50: '#797dcd',
    500: '#284cb7',
    950: '#000000',
  },
}
SCSS
$custom: #284cb7;
$custom-light: #797dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#284cb7",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 183
  },
  "hsl": {
    "h": 224.895,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45858,
    "c": 0.17443,
    "h": 265.6
  },
  "luminance": 0.09039
}

Semantic roles & 50–950 ramp

primary
#284CB7
secondary
#C9B372
accent
#BD41E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #284CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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