#284F98#284F98

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

Color values

HEX#284F98
RGBrgb(40, 79, 152)
HSLhsl(219, 58%, 38%)
HSVhsv(219, 74%, 60%)
CMYKcmyk(73.7%, 48%, 0%, 40.4%)
CIE-LABlab(34.62, 12.52, -44.03)
CIE-LCHlch(34.62, 45.78, 285.87°)
OKLaboklab(44.05% -0.0187 -0.1263)
OKLCHoklch(44.05% 0.128 261.6)
XYZxyz(9.3365, 8.3091, 30.8114)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F98 #987128
analogous
#288798 #284F98 #392898
triadic
#284F98 #98284F #4F9828
tetradic
#284F98 #982887 #987128 #289839
square
#284F98 #982887 #987128 #289839
split-complementary
#284F98 #983928 #879828
monochromatic
#0F1D37 #1B3668 #284F98 #3568C8 #648CD6

Accessibility & contrast

On white

7.89
#284F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284F98
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F98#FFFFFF#000000##FFFFFF
##284F981.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28579B
Deuteranopia (green-blind)
#0B4D97
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #284f98;
/* rgb */ color: rgb(40, 79, 152);
/* oklch */ color: oklch(44.0% 0.128 261.6);
Tailwind
colors: {
  custom: {
    50: '#717fb7',
    500: '#284f98',
    950: '#000000',
  },
}
SCSS
$custom: #284f98;
$custom-light: #717fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#284f98",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 152
  },
  "hsl": {
    "h": 219.107,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44048,
    "c": 0.12766,
    "h": 261.6
  },
  "luminance": 0.0831
}

Semantic roles & 50–950 ramp

primary
#284F98
secondary
#BC9C60
accent
#AB46E2
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #284F98

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

Preview Lab → · Contrast checker → · Palette generator →

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