#284AB5#284AB5

#284AB5 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.3% C 0.174 H 266.0°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#284AB5
RGBrgb(40, 74, 181)
HSLhsl(226, 64%, 43%)
HSVhsv(226, 78%, 71%)
CMYKcmyk(77.9%, 59.1%, 0%, 29%)
CIE-LABlab(35.37, 27.04, -60.15)
CIE-LCHlch(35.37, 65.95, 294.20°)
OKLaboklab(45.29% -0.0121 -0.1738)
OKLCHoklch(45.29% 0.174 266)
XYZxyz(11.6614, 8.6835, 44.7686)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284AB5 #B59328
analogous
#2890B5 #284AB5 #4C28B5
triadic
#284AB5 #B5284A #4AB528
tetradic
#284AB5 #B52890 #B59328 #28B54C
square
#284AB5 #B52890 #B59328 #28B54C
split-complementary
#284AB5 #B54C28 #90B528
monochromatic
#122151 #1D3683 #284AB5 #4467D6 #7790E1

Accessibility & contrast

On white

7.67
#284AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#284AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284AB5
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284AB5#FFFFFF#000000##FFFFFF
##284AB51.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #284ab5;
/* rgb */ color: rgb(40, 74, 181);
/* oklch */ color: oklch(45.3% 0.174 266.0);
Tailwind
colors: {
  custom: {
    50: '#787ccc',
    500: '#284ab5',
    950: '#000000',
  },
}
SCSS
$custom: #284ab5;
$custom-light: #787ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#284ab5",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 181
  },
  "hsl": {
    "h": 225.532,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45292,
    "c": 0.1742,
    "h": 266
  },
  "luminance": 0.08685
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #284AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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