#284797#284797

#284797 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.2% C 0.136 H 265.1°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#284797
RGBrgb(40, 71, 151)
HSLhsl(223, 58%, 37%)
HSVhsv(223, 74%, 59%)
CMYKcmyk(73.5%, 53%, 0%, 40.8%)
CIE-LABlab(32.24, 17.52, -47.26)
CIE-LCHlch(32.24, 50.41, 290.34°)
OKLaboklab(42.21% -0.0117 -0.1359)
OKLCHoklch(42.21% 0.136 265.1)
XYZxyz(8.7123, 7.1910, 30.2010)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284797 #977828
analogous
#287F97 #284797 #402897
triadic
#284797 #972847 #479728
tetradic
#284797 #97287F #977828 #289740
square
#284797 #97287F #977828 #289740
split-complementary
#284797 #974028 #7F9728
monochromatic
#0E1A36 #1B3067 #284797 #355EC7 #6483D6

Accessibility & contrast

On white

8.61
#284797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#284797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284797
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284797#FFFFFF#000000##FFFFFF
##2847971.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12519A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #284797;
/* rgb */ color: rgb(40, 71, 151);
/* oklch */ color: oklch(42.2% 0.136 265.1);
Tailwind
colors: {
  custom: {
    50: '#7179b6',
    500: '#284797',
    950: '#000000',
  },
}
SCSS
$custom: #284797;
$custom-light: #7179b6;
$custom-dark: #000000;
JSON
{
  "hex": "#284797",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 223.243,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42209,
    "c": 0.13643,
    "h": 265.1
  },
  "luminance": 0.07192
}

Semantic roles & 50–950 ramp

primary
#284797
secondary
#BCA25F
accent
#B646E1
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #284797

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

Preview Lab → · Contrast checker → · Palette generator →

#284797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva