#284CB4#284CB4

#284CB4 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.6% C 0.170 H 265.5°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#284CB4
RGBrgb(40, 76, 180)
HSLhsl(225, 64%, 43%)
HSVhsv(225, 78%, 71%)
CMYKcmyk(77.8%, 57.8%, 0%, 29.4%)
CIE-LABlab(35.82, 25.33, -58.83)
CIE-LCHlch(35.82, 64.05, 293.30°)
OKLaboklab(45.61% -0.0134 -0.1699)
OKLCHoklch(45.61% 0.17 265.5)
XYZxyz(11.6948, 8.9140, 44.2754)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284CB4 #B49028
analogous
#2892B4 #284CB4 #4A28B4
triadic
#284CB4 #B4284C #4CB428
tetradic
#284CB4 #B42892 #B49028 #28B44A
square
#284CB4 #B42892 #B49028 #28B44A
split-complementary
#284CB4 #B44A28 #92B428
monochromatic
#122250 #1D3782 #284CB4 #4469D5 #7691E1

Accessibility & contrast

On white

7.55
#284CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#284CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284CB4
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284CB4#FFFFFF#000000##FFFFFF
##284CB41.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB8
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #284cb4;
/* rgb */ color: rgb(40, 76, 180);
/* oklch */ color: oklch(45.6% 0.170 265.5);
Tailwind
colors: {
  custom: {
    50: '#787dcb',
    500: '#284cb4',
    950: '#000000',
  },
}
SCSS
$custom: #284cb4;
$custom-light: #787dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#284cb4",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 180
  },
  "hsl": {
    "h": 224.571,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45605,
    "c": 0.17039,
    "h": 265.5
  },
  "luminance": 0.08915
}

Semantic roles & 50–950 ramp

primary
#284CB4
secondary
#C8B170
accent
#BC41E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #284CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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