#284E95#284E95

#284E95 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.6% C 0.125 H 261.6°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#284E95
RGBrgb(40, 78, 149)
HSLhsl(219, 58%, 37%)
HSVhsv(219, 73%, 58%)
CMYKcmyk(73.2%, 47.7%, 0%, 41.6%)
CIE-LABlab(34.13, 12.02, -43.01)
CIE-LCHlch(34.13, 44.65, 285.62°)
OKLaboklab(43.61% -0.0183 -0.1233)
OKLCHoklch(43.61% 0.125 261.6)
XYZxyz(9.0223, 8.0689, 29.5099)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E95 #956F28
analogous
#288495 #284E95 #392895
triadic
#284E95 #95284E #4E9528
tetradic
#284E95 #952884 #956F28 #289539
square
#284E95 #952884 #956F28 #289539
split-complementary
#284E95 #953928 #849528
monochromatic
#0E1B35 #1B3565 #284E95 #3567C5 #628AD5

Accessibility & contrast

On white

8.03
#284E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284E95
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284E95#FFFFFF#000000##FFFFFF
##284E951.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295698
Deuteranopia (green-blind)
#0F4C94
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #284e95;
/* rgb */ color: rgb(40, 78, 149);
/* oklch */ color: oklch(43.6% 0.125 261.6);
Tailwind
colors: {
  custom: {
    50: '#717fb5',
    500: '#284e95',
    950: '#000000',
  },
}
SCSS
$custom: #284e95;
$custom-light: #717fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#284e95",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 149
  },
  "hsl": {
    "h": 219.083,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43606,
    "c": 0.12463,
    "h": 261.6
  },
  "luminance": 0.0807
}

Semantic roles & 50–950 ramp

primary
#284E95
secondary
#BB9A5E
accent
#AB47E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #284E95

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

Preview Lab → · Contrast checker → · Palette generator →

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