#284399#284399

#284399 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.5% C 0.144 H 266.8°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#284399
RGBrgb(40, 67, 153)
HSLhsl(226, 59%, 38%)
HSVhsv(226, 74%, 60%)
CMYKcmyk(73.9%, 56.2%, 0%, 40%)
CIE-LABlab(31.26, 21.00, -50.06)
CIE-LCHlch(31.26, 54.28, 292.76°)
OKLaboklab(41.52% -0.0082 -0.1442)
OKLCHoklch(41.52% 0.144 266.8)
XYZxyz(8.6300, 6.7644, 30.9817)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284399 #997E28
analogous
#287B99 #284399 #462899
triadic
#284399 #992843 #439928
tetradic
#284399 #99287B #997E28 #289946
square
#284399 #99287B #997E28 #289946
split-complementary
#284399 #994628 #7B9928
monochromatic
#0F1938 #1B2E68 #284399 #3558CA #6580D7

Accessibility & contrast

On white

8.92
#284399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#284399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284399
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284399#FFFFFF#000000##FFFFFF
##2843991.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#004597
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #284399;
/* rgb */ color: rgb(40, 67, 153);
/* oklch */ color: oklch(41.5% 0.144 266.8);
Tailwind
colors: {
  custom: {
    50: '#7276b8',
    500: '#284399',
    950: '#000000',
  },
}
SCSS
$custom: #284399;
$custom-light: #7276b8;
$custom-dark: #000000;
JSON
{
  "hex": "#284399",
  "rgb": {
    "r": 40,
    "g": 67,
    "b": 153
  },
  "hsl": {
    "h": 225.664,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4152,
    "c": 0.14444,
    "h": 266.8
  },
  "luminance": 0.06765
}

Semantic roles & 50–950 ramp

primary
#284399
secondary
#BDA660
accent
#BD46E2
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #284399

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

Preview Lab → · Contrast checker → · Palette generator →

#284399 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva