#284CBF#284CBF

#284CBF is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.5% C 0.185 H 265.9°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#284CBF
RGBrgb(40, 76, 191)
HSLhsl(226, 65%, 45%)
HSVhsv(226, 79%, 75%)
CMYKcmyk(79.1%, 60.2%, 0%, 25.1%)
CIE-LABlab(36.71, 29.51, -63.85)
CIE-LCHlch(36.71, 70.34, 294.80°)
OKLaboklab(46.55% -0.0131 -0.1846)
OKLCHoklch(46.55% 0.185 265.9)
XYZxyz(12.8602, 9.3801, 50.4129)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284CBF #BF9B28
analogous
#2898BF #284CBF #4F28BF
triadic
#284CBF #BF284C #4CBF28
tetradic
#284CBF #BF2898 #BF9B28 #28BF4F
square
#284CBF #BF2898 #BF9B28 #28BF4F
split-complementary
#284CBF #BF4F28 #98BF28
monochromatic
#13245A #1D388C #284CBF #4B6DD9 #7E96E4

Accessibility & contrast

On white

7.30
#284CBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#284CBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284CBF
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284CBF#FFFFFF#000000##FFFFFF
##284CBF1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#0050BD
Tritanopia (blue-blind)
#00697E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #284cbf;
/* rgb */ color: rgb(40, 76, 191);
/* oklch */ color: oklch(46.5% 0.185 265.9);
Tailwind
colors: {
  custom: {
    50: '#7b7dd3',
    500: '#284cbf',
    950: '#000000',
  },
}
SCSS
$custom: #284cbf;
$custom-light: #7b7dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#284cbf",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 191
  },
  "hsl": {
    "h": 225.695,
    "s": 65.368,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46546,
    "c": 0.18506,
    "h": 265.9
  },
  "luminance": 0.09382
}

Semantic roles & 50–950 ramp

primary
#284CBF
secondary
#CCB877
accent
#C03FE8
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #284CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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