#284A98#284A98

#284A98 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 42.9% C 0.134 H 263.9°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#284A98
RGBrgb(40, 74, 152)
HSLhsl(222, 58%, 38%)
HSVhsv(222, 74%, 60%)
CMYKcmyk(73.7%, 51.3%, 0%, 40.4%)
CIE-LABlab(33.17, 15.88, -46.37)
CIE-LCHlch(33.17, 49.01, 288.90°)
OKLaboklab(42.94% -0.0142 -0.1332)
OKLCHoklch(42.94% 0.134 263.9)
XYZxyz(8.9893, 7.6147, 30.6957)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284A98 #987628
analogous
#288298 #284A98 #3E2898
triadic
#284A98 #98284A #4A9828
tetradic
#284A98 #982882 #987628 #28983E
square
#284A98 #982882 #987628 #28983E
split-complementary
#284A98 #983E28 #829828
monochromatic
#0F1B37 #1B3268 #284A98 #3562C8 #6487D6

Accessibility & contrast

On white

8.32
#284A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#284A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284A98
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284A98#FFFFFF#000000##FFFFFF
##284A981.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B539B
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#005D6A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #284a98;
/* rgb */ color: rgb(40, 74, 152);
/* oklch */ color: oklch(42.9% 0.134 263.9);
Tailwind
colors: {
  custom: {
    50: '#717cb7',
    500: '#284a98',
    950: '#000000',
  },
}
SCSS
$custom: #284a98;
$custom-light: #717cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#284a98",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 152
  },
  "hsl": {
    "h": 221.786,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42938,
    "c": 0.13401,
    "h": 263.9
  },
  "luminance": 0.07616
}

Semantic roles & 50–950 ramp

primary
#284A98
secondary
#BCA060
accent
#B246E2
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #284A98

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

Preview Lab → · Contrast checker → · Palette generator →

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