#284AB9#284AB9

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

Color values

HEX#284AB9
RGBrgb(40, 74, 185)
HSLhsl(226, 64%, 44%)
HSVhsv(226, 78%, 73%)
CMYKcmyk(78.4%, 60%, 0%, 27.5%)
CIE-LABlab(35.69, 28.55, -61.98)
CIE-LCHlch(35.69, 68.24, 294.73°)
OKLaboklab(45.64% -0.012 -0.1791)
OKLCHoklch(45.64% 0.18 266.2)
XYZxyz(12.0777, 8.8501, 46.9612)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284AB9 #B99728
analogous
#2893B9 #284AB9 #4F28B9
triadic
#284AB9 #B9284A #4AB928
tetradic
#284AB9 #B92893 #B99728 #28B94F
square
#284AB9 #B92893 #B99728 #28B94F
split-complementary
#284AB9 #B94F28 #93B928
monochromatic
#122254 #1D3687 #284AB9 #4769D7 #7992E2

Accessibility & contrast

On white

7.58
#284AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#284AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284AB9
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284AB9#FFFFFF#000000##FFFFFF
##284AB91.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBD
Deuteranopia (green-blind)
#004DB7
Tritanopia (blue-blind)
#00667A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #284ab9;
/* rgb */ color: rgb(40, 74, 185);
/* oklch */ color: oklch(45.6% 0.180 266.2);
Tailwind
colors: {
  custom: {
    50: '#797ccf',
    500: '#284ab9',
    950: '#000000',
  },
}
SCSS
$custom: #284ab9;
$custom-light: #797ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#284ab9",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 185
  },
  "hsl": {
    "h": 225.931,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45638,
    "c": 0.17954,
    "h": 266.2
  },
  "luminance": 0.08851
}

Semantic roles & 50–950 ramp

primary
#284AB9
secondary
#CAB673
accent
#C040E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #284AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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