#284796#284796

#284796 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.1% C 0.135 H 265.0°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#284796
RGBrgb(40, 71, 150)
HSLhsl(223, 58%, 37%)
HSVhsv(223, 73%, 59%)
CMYKcmyk(73.3%, 52.7%, 0%, 41.2%)
CIE-LABlab(32.17, 17.13, -46.77)
CIE-LCHlch(32.17, 49.81, 290.12°)
OKLaboklab(42.13% -0.0118 -0.1345)
OKLCHoklch(42.13% 0.135 265)
XYZxyz(8.6314, 7.1587, 29.7751)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284796 #967728
analogous
#287E96 #284796 #402896
triadic
#284796 #962847 #479628
tetradic
#284796 #96287E #967728 #289640
square
#284796 #96287E #967728 #289640
split-complementary
#284796 #964028 #7E9628
monochromatic
#0E1935 #1B3066 #284796 #355EC6 #6383D5

Accessibility & contrast

On white

8.63
#284796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#284796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284796
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284796#FFFFFF#000000##FFFFFF
##2847961.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145199
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#005A67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #284796;
/* rgb */ color: rgb(40, 71, 150);
/* oklch */ color: oklch(42.1% 0.135 265.0);
Tailwind
colors: {
  custom: {
    50: '#7179b5',
    500: '#284796',
    950: '#000000',
  },
}
SCSS
$custom: #284796;
$custom-light: #7179b5;
$custom-dark: #000000;
JSON
{
  "hex": "#284796",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 150
  },
  "hsl": {
    "h": 223.091,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42131,
    "c": 0.135,
    "h": 265
  },
  "luminance": 0.0716
}

Semantic roles & 50–950 ramp

primary
#284796
secondary
#BBA15F
accent
#B647E1
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #284796

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

Preview Lab → · Contrast checker → · Palette generator →

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