#284F91#284F91

#284F91 is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.5% C 0.118 H 260.2°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#284F91
RGBrgb(40, 79, 145)
HSLhsl(218, 57%, 36%)
HSVhsv(218, 72%, 57%)
CMYKcmyk(72.4%, 45.5%, 0%, 43.1%)
CIE-LABlab(34.16, 9.81, -40.52)
CIE-LCHlch(34.16, 41.69, 283.61°)
OKLaboklab(43.55% -0.0199 -0.1159)
OKLCHoklch(43.55% 0.118 260.2)
XYZxyz(8.7801, 8.0865, 27.8807)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F91 #916A28
analogous
#288491 #284F91 #362891
triadic
#284F91 #91284F #4F9128
tetradic
#284F91 #912884 #916A28 #289136
square
#284F91 #912884 #916A28 #289136
split-complementary
#284F91 #913628 #849128
monochromatic
#0E1B31 #1B3561 #284F91 #3569C1 #608BD3

Accessibility & contrast

On white

8.02
#284F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#284F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F91
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F91#FFFFFF#000000##FFFFFF
##284F911.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5694
Deuteranopia (green-blind)
#1A4C90
Tritanopia (blue-blind)
#005E69
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #284f91;
/* rgb */ color: rgb(40, 79, 145);
/* oklch */ color: oklch(43.5% 0.118 260.2);
Tailwind
colors: {
  custom: {
    50: '#707fb2',
    500: '#284f91',
    950: '#000000',
  },
}
SCSS
$custom: #284f91;
$custom-light: #707fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#284f91",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 145
  },
  "hsl": {
    "h": 217.714,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4355,
    "c": 0.11763,
    "h": 260.2
  },
  "luminance": 0.08087
}

Semantic roles & 50–950 ramp

primary
#284F91
secondary
#B9965C
accent
#A748E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #284F91

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

Preview Lab → · Contrast checker → · Palette generator →

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