#284CBD#284CBD

#284CBD is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.4% C 0.182 H 265.9°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#284CBD
RGBrgb(40, 76, 189)
HSLhsl(226, 65%, 45%)
HSVhsv(226, 79%, 74%)
CMYKcmyk(78.8%, 59.8%, 0%, 25.9%)
CIE-LABlab(36.54, 28.75, -62.95)
CIE-LCHlch(36.54, 69.20, 294.55°)
OKLaboklab(46.37% -0.0131 -0.1819)
OKLCHoklch(46.37% 0.182 265.9)
XYZxyz(12.6416, 9.2927, 49.2616)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284CBD #BD9928
analogous
#2897BD #284CBD #4E28BD
triadic
#284CBD #BD284C #4CBD28
tetradic
#284CBD #BD2897 #BD9928 #28BD4E
square
#284CBD #BD2897 #BD9928 #28BD4E
split-complementary
#284CBD #BD4E28 #97BD28
monochromatic
#132358 #1D388A #284CBD #4A6CD9 #7C95E3

Accessibility & contrast

On white

7.35
#284CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284CBD
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284CBD#FFFFFF#000000##FFFFFF
##284CBD1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#004FBB
Tritanopia (blue-blind)
#00697D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #284cbd;
/* rgb */ color: rgb(40, 76, 189);
/* oklch */ color: oklch(46.4% 0.182 265.9);
Tailwind
colors: {
  custom: {
    50: '#7a7dd2',
    500: '#284cbd',
    950: '#000000',
  },
}
SCSS
$custom: #284cbd;
$custom-light: #7a7dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#284cbd",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 189
  },
  "hsl": {
    "h": 225.503,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46372,
    "c": 0.18242,
    "h": 265.9
  },
  "luminance": 0.09294
}

Semantic roles & 50–950 ramp

primary
#284CBD
secondary
#CBB775
accent
#BF40E8
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #284CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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