#284F97#284F97

#284F97 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.0% C 0.126 H 261.4°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#284F97
RGBrgb(40, 79, 151)
HSLhsl(219, 58%, 37%)
HSVhsv(219, 74%, 59%)
CMYKcmyk(73.5%, 47.7%, 0%, 40.8%)
CIE-LABlab(34.55, 12.13, -43.53)
CIE-LCHlch(34.55, 45.19, 285.57°)
OKLaboklab(43.98% -0.0189 -0.1248)
OKLCHoklch(43.98% 0.126 261.4)
XYZxyz(9.2550, 8.2765, 30.3819)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F97 #977028
analogous
#288697 #284F97 #392897
triadic
#284F97 #97284F #4F9728
tetradic
#284F97 #972886 #977028 #289739
square
#284F97 #972886 #977028 #289739
split-complementary
#284F97 #973928 #869728
monochromatic
#0E1C36 #1B3667 #284F97 #3568C7 #648CD6

Accessibility & contrast

On white

7.91
#284F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#284F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F97
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F97#FFFFFF#000000##FFFFFF
##284F971.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579A
Deuteranopia (green-blind)
#0E4C96
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #284f97;
/* rgb */ color: rgb(40, 79, 151);
/* oklch */ color: oklch(44.0% 0.126 261.4);
Tailwind
colors: {
  custom: {
    50: '#717fb6',
    500: '#284f97',
    950: '#000000',
  },
}
SCSS
$custom: #284f97;
$custom-light: #717fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#284f97",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 218.919,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.43976,
    "c": 0.12623,
    "h": 261.4
  },
  "luminance": 0.08277
}

Semantic roles & 50–950 ramp

primary
#284F97
secondary
#BC9B5F
accent
#AB46E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #284F97

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

Preview Lab → · Contrast checker → · Palette generator →

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