#284AB4#284AB4

#284AB4 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.2% C 0.173 H 266.0°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#284AB4
RGBrgb(40, 74, 180)
HSLhsl(225, 64%, 43%)
HSVhsv(225, 78%, 71%)
CMYKcmyk(77.8%, 58.9%, 0%, 29.4%)
CIE-LABlab(35.29, 26.66, -59.70)
CIE-LCHlch(35.29, 65.38, 294.06°)
OKLaboklab(45.21% -0.0121 -0.1724)
OKLCHoklch(45.21% 0.173 266)
XYZxyz(11.5592, 8.6426, 44.2302)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284AB4 #B49228
analogous
#2890B4 #284AB4 #4C28B4
triadic
#284AB4 #B4284A #4AB428
tetradic
#284AB4 #B42890 #B49228 #28B44C
square
#284AB4 #B42890 #B49228 #28B44C
split-complementary
#284AB4 #B44C28 #90B428
monochromatic
#122150 #1D3582 #284AB4 #4467D5 #7690E1

Accessibility & contrast

On white

7.70
#284AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#284AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284AB4
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284AB4#FFFFFF#000000##FFFFFF
##284AB41.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB8
Deuteranopia (green-blind)
#004DB2
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #284ab4;
/* rgb */ color: rgb(40, 74, 180);
/* oklch */ color: oklch(45.2% 0.173 266.0);
Tailwind
colors: {
  custom: {
    50: '#787ccb',
    500: '#284ab4',
    950: '#000000',
  },
}
SCSS
$custom: #284ab4;
$custom-light: #787ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#284ab4",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 180
  },
  "hsl": {
    "h": 225.429,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45207,
    "c": 0.17285,
    "h": 266
  },
  "luminance": 0.08644
}

Semantic roles & 50–950 ramp

primary
#284AB4
secondary
#C8B370
accent
#BE41E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #284AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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