#284E98#284E98

#284E98 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.8% C 0.129 H 262.1°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#284E98
RGBrgb(40, 78, 152)
HSLhsl(220, 58%, 38%)
HSVhsv(220, 74%, 60%)
CMYKcmyk(73.7%, 48.7%, 0%, 40.4%)
CIE-LABlab(34.33, 13.19, -44.50)
CIE-LCHlch(34.33, 46.41, 286.51°)
OKLaboklab(43.82% -0.0178 -0.1277)
OKLCHoklch(43.82% 0.129 262.1)
XYZxyz(9.2649, 8.1659, 30.7876)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E98 #987228
analogous
#288698 #284E98 #3A2898
triadic
#284E98 #98284E #4E9828
tetradic
#284E98 #982886 #987228 #28983A
square
#284E98 #982886 #987228 #28983A
split-complementary
#284E98 #983A28 #869828
monochromatic
#0F1C37 #1B3568 #284E98 #3567C8 #648BD6

Accessibility & contrast

On white

7.97
#284E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#284E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284E98
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284E98#FFFFFF#000000##FFFFFF
##284E981.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26569B
Deuteranopia (green-blind)
#064C97
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #284e98;
/* rgb */ color: rgb(40, 78, 152);
/* oklch */ color: oklch(43.8% 0.129 262.1);
Tailwind
colors: {
  custom: {
    50: '#717fb7',
    500: '#284e98',
    950: '#000000',
  },
}
SCSS
$custom: #284e98;
$custom-light: #717fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#284e98",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 152
  },
  "hsl": {
    "h": 219.643,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43824,
    "c": 0.12891,
    "h": 262.1
  },
  "luminance": 0.08167
}

Semantic roles & 50–950 ramp

primary
#284E98
secondary
#BC9D60
accent
#AD46E2
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #284E98

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

Preview Lab → · Contrast checker → · Palette generator →

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