#284CAB#284CAB

#284CAB is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.9% C 0.158 H 264.9°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#284CAB
RGBrgb(40, 76, 171)
HSLhsl(224, 62%, 41%)
HSVhsv(224, 77%, 67%)
CMYKcmyk(76.6%, 55.6%, 0%, 32.9%)
CIE-LABlab(35.12, 21.88, -54.62)
CIE-LCHlch(35.12, 58.84, 291.83°)
OKLaboklab(44.86% -0.014 -0.1575)
OKLCHoklch(44.86% 0.158 264.9)
XYZxyz(10.8076, 8.5591, 39.6027)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284CAB #AB8728
analogous
#288EAB #284CAB #4528AB
triadic
#284CAB #AB284C #4CAB28
tetradic
#284CAB #AB288E #AB8728 #28AB45
square
#284CAB #AB288E #AB8728 #28AB45
split-complementary
#284CAB #AB4528 #8EAB28
monochromatic
#112048 #1C3679 #284CAB #3E67D2 #708EDE

Accessibility & contrast

On white

7.74
#284CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#284CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284CAB
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284CAB#FFFFFF#000000##FFFFFF
##284CAB1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #284cab;
/* rgb */ color: rgb(40, 76, 171);
/* oklch */ color: oklch(44.9% 0.158 264.9);
Tailwind
colors: {
  custom: {
    50: '#767dc5',
    500: '#284cab',
    950: '#000000',
  },
}
SCSS
$custom: #284cab;
$custom-light: #767dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#284cab",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 171
  },
  "hsl": {
    "h": 223.511,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44861,
    "c": 0.15812,
    "h": 264.9
  },
  "luminance": 0.0856
}

Semantic roles & 50–950 ramp

primary
#284CAB
secondary
#C4AC6A
accent
#B843E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #284CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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