#284AA6#284AA6

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

Color values

HEX#284AA6
RGBrgb(40, 74, 166)
HSLhsl(224, 61%, 40%)
HSVhsv(224, 76%, 65%)
CMYKcmyk(75.9%, 55.4%, 0%, 34.9%)
CIE-LABlab(34.19, 21.30, -53.15)
CIE-LCHlch(34.19, 57.25, 291.84°)
OKLaboklab(44.04% -0.0128 -0.1532)
OKLCHoklch(44.04% 0.154 265.2)
XYZxyz(10.2044, 8.1007, 37.0948)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284AA6 #A68428
analogous
#2889A6 #284AA6 #4528A6
triadic
#284AA6 #A6284A #4AA628
tetradic
#284AA6 #A62889 #A68428 #28A645
square
#284AA6 #A62889 #A68428 #28A645
split-complementary
#284AA6 #A64528 #89A628
monochromatic
#101E43 #1C3475 #284AA6 #3B63D0 #6D8BDC

Accessibility & contrast

On white

8.01
#284AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#284AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284AA6
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284AA6#FFFFFF#000000##FFFFFF
##284AA61.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A9
Deuteranopia (green-blind)
#004BA4
Tritanopia (blue-blind)
#006170
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #284aa6;
/* rgb */ color: rgb(40, 74, 166);
/* oklch */ color: oklch(44.0% 0.154 265.2);
Tailwind
colors: {
  custom: {
    50: '#757cc1',
    500: '#284aa6',
    950: '#000000',
  },
}
SCSS
$custom: #284aa6;
$custom-light: #757cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#284aa6",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 166
  },
  "hsl": {
    "h": 223.81,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4404,
    "c": 0.15373,
    "h": 265.2
  },
  "luminance": 0.08102
}

Semantic roles & 50–950 ramp

primary
#284AA6
secondary
#C2AA67
accent
#B944E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #284AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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