#284CB1#284CB1

#284CB1 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.4% C 0.166 H 265.3°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#284CB1
RGBrgb(40, 76, 177)
HSLhsl(224, 63%, 43%)
HSVhsv(224, 77%, 69%)
CMYKcmyk(77.4%, 57.1%, 0%, 30.6%)
CIE-LABlab(35.58, 24.19, -57.44)
CIE-LCHlch(35.58, 62.32, 292.84°)
OKLaboklab(45.35% -0.0136 -0.1658)
OKLCHoklch(45.35% 0.166 265.3)
XYZxyz(11.3925, 8.7930, 42.6832)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284CB1 #B18D28
analogous
#2890B1 #284CB1 #4928B1
triadic
#284CB1 #B1284C #4CB128
tetradic
#284CB1 #B12890 #B18D28 #28B149
square
#284CB1 #B12890 #B18D28 #28B149
split-complementary
#284CB1 #B14928 #90B128
monochromatic
#11214D #1D377F #284CB1 #4268D4 #7490E0

Accessibility & contrast

On white

7.61
#284CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#284CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284CB1
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284CB1#FFFFFF#000000##FFFFFF
##284CB11.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #284cb1;
/* rgb */ color: rgb(40, 76, 177);
/* oklch */ color: oklch(45.4% 0.166 265.3);
Tailwind
colors: {
  custom: {
    50: '#777dc9',
    500: '#284cb1',
    950: '#000000',
  },
}
SCSS
$custom: #284cb1;
$custom-light: #777dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#284cb1",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 177
  },
  "hsl": {
    "h": 224.234,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45354,
    "c": 0.16633,
    "h": 265.3
  },
  "luminance": 0.08794
}

Semantic roles & 50–950 ramp

primary
#284CB1
secondary
#C7AF6E
accent
#BB42E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #284CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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