#284791#284791

#284791 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.7% C 0.128 H 264.4°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#284791
RGBrgb(40, 71, 145)
HSLhsl(222, 57%, 36%)
HSVhsv(222, 72%, 57%)
CMYKcmyk(72.4%, 51%, 0%, 43.1%)
CIE-LABlab(31.81, 15.19, -44.30)
CIE-LCHlch(31.81, 46.83, 288.93°)
OKLaboklab(41.75% -0.0124 -0.1272)
OKLCHoklch(41.75% 0.128 264.4)
XYZxyz(8.2373, 7.0011, 27.6998)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284791 #917228
analogous
#287C91 #284791 #3E2891
triadic
#284791 #912847 #479128
tetradic
#284791 #91287C #917228 #28913E
square
#284791 #91287C #917228 #28913E
split-complementary
#284791 #913E28 #7C9128
monochromatic
#0E1831 #1B3061 #284791 #355EC1 #6082D3

Accessibility & contrast

On white

8.75
#284791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#284791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284791
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284791#FFFFFF#000000##FFFFFF
##2847911.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5094
Deuteranopia (green-blind)
#004690
Tritanopia (blue-blind)
#005965
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #284791;
/* rgb */ color: rgb(40, 71, 145);
/* oklch */ color: oklch(41.7% 0.128 264.4);
Tailwind
colors: {
  custom: {
    50: '#7079b2',
    500: '#284791',
    950: '#000000',
  },
}
SCSS
$custom: #284791;
$custom-light: #7079b2;
$custom-dark: #000000;
JSON
{
  "hex": "#284791",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 145
  },
  "hsl": {
    "h": 222.286,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41746,
    "c": 0.1278,
    "h": 264.4
  },
  "luminance": 0.07002
}

Semantic roles & 50–950 ramp

primary
#284791
secondary
#B99D5C
accent
#B348E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #284791

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

Preview Lab → · Contrast checker → · Palette generator →

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