#284AA5#284AA5

#284AA5 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.0% C 0.152 H 265.1°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#284AA5
RGBrgb(40, 74, 165)
HSLhsl(224, 61%, 40%)
HSVhsv(224, 76%, 65%)
CMYKcmyk(75.8%, 55.2%, 0%, 35.3%)
CIE-LABlab(34.12, 20.91, -52.67)
CIE-LCHlch(34.12, 56.67, 291.65°)
OKLaboklab(43.96% -0.0129 -0.1518)
OKLCHoklch(43.96% 0.152 265.1)
XYZxyz(10.1130, 8.0642, 36.6136)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284AA5 #A58328
analogous
#2888A5 #284AA5 #4428A5
triadic
#284AA5 #A5284A #4AA528
tetradic
#284AA5 #A52888 #A58328 #28A544
square
#284AA5 #A52888 #A58328 #28A544
split-complementary
#284AA5 #A54428 #88A528
monochromatic
#101E42 #1C3474 #284AA5 #3B63CF #6C8ADB

Accessibility & contrast

On white

8.04
#284AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#284AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284AA5
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284AA5#FFFFFF#000000##FFFFFF
##284AA51.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A8
Deuteranopia (green-blind)
#004BA3
Tritanopia (blue-blind)
#006070
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #284aa5;
/* rgb */ color: rgb(40, 74, 165);
/* oklch */ color: oklch(44.0% 0.152 265.1);
Tailwind
colors: {
  custom: {
    50: '#747cc0',
    500: '#284aa5',
    950: '#000000',
  },
}
SCSS
$custom: #284aa5;
$custom-light: #747cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#284aa5",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 165
  },
  "hsl": {
    "h": 223.68,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43959,
    "c": 0.15234,
    "h": 265.1
  },
  "luminance": 0.08065
}

Semantic roles & 50–950 ramp

primary
#284AA5
secondary
#C2A967
accent
#B844E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #284AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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