#284CA6#284CA6

#284CA6 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.5% C 0.151 H 264.5°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#284CA6
RGBrgb(40, 76, 166)
HSLhsl(223, 61%, 40%)
HSVhsv(223, 76%, 65%)
CMYKcmyk(75.9%, 54.2%, 0%, 34.9%)
CIE-LABlab(34.75, 19.96, -52.25)
CIE-LCHlch(34.75, 55.93, 290.90°)
OKLaboklab(44.46% -0.0144 -0.1505)
OKLCHoklch(44.46% 0.151 264.5)
XYZxyz(10.3400, 8.3720, 37.1400)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284CA6 #A68228
analogous
#288BA6 #284CA6 #4328A6
triadic
#284CA6 #A6284C #4CA628
tetradic
#284CA6 #A6288B #A68228 #28A643
square
#284CA6 #A6288B #A68228 #28A643
split-complementary
#284CA6 #A64328 #8BA628
monochromatic
#101F43 #1C3575 #284CA6 #3B66D0 #6D8CDC

Accessibility & contrast

On white

7.85
#284CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#284CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284CA6
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284CA6#FFFFFF#000000##FFFFFF
##284CA61.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0458A9
Deuteranopia (green-blind)
#004CA4
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #284ca6;
/* rgb */ color: rgb(40, 76, 166);
/* oklch */ color: oklch(44.5% 0.151 264.5);
Tailwind
colors: {
  custom: {
    50: '#757dc1',
    500: '#284ca6',
    950: '#000000',
  },
}
SCSS
$custom: #284ca6;
$custom-light: #757dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#284ca6",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 166
  },
  "hsl": {
    "h": 222.857,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44459,
    "c": 0.1512,
    "h": 264.5
  },
  "luminance": 0.08373
}

Semantic roles & 50–950 ramp

primary
#284CA6
secondary
#C2A867
accent
#B644E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #284CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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