#284AA4#284AA4

#284AA4 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.9% C 0.151 H 265.1°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#284AA4
RGBrgb(40, 74, 164)
HSLhsl(224, 61%, 40%)
HSVhsv(224, 76%, 64%)
CMYKcmyk(75.6%, 54.9%, 0%, 35.7%)
CIE-LABlab(34.04, 20.52, -52.19)
CIE-LCHlch(34.04, 56.08, 291.47°)
OKLaboklab(43.88% -0.013 -0.1504)
OKLCHoklch(43.88% 0.151 265.1)
XYZxyz(10.0223, 8.0279, 36.1361)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284AA4 #A48228
analogous
#2888A4 #284AA4 #4428A4
triadic
#284AA4 #A4284A #4AA428
tetradic
#284AA4 #A42888 #A48228 #28A444
square
#284AA4 #A42888 #A48228 #28A444
split-complementary
#284AA4 #A44428 #88A428
monochromatic
#101E42 #1C3473 #284AA4 #3A63CF #6B8ADB

Accessibility & contrast

On white

8.06
#284AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284AA4
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284AA4#FFFFFF#000000##FFFFFF
##284AA41.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A7
Deuteranopia (green-blind)
#004BA2
Tritanopia (blue-blind)
#00606F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #284aa4;
/* rgb */ color: rgb(40, 74, 164);
/* oklch */ color: oklch(43.9% 0.151 265.1);
Tailwind
colors: {
  custom: {
    50: '#747cc0',
    500: '#284aa4',
    950: '#000000',
  },
}
SCSS
$custom: #284aa4;
$custom-light: #747cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#284aa4",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 164
  },
  "hsl": {
    "h": 223.548,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.43879,
    "c": 0.15094,
    "h": 265.1
  },
  "luminance": 0.08029
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #284AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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