#284196#284196

#284196 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.143 H 267.3°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#284196
RGBrgb(40, 65, 150)
HSLhsl(226, 58%, 37%)
HSVhsv(226, 73%, 59%)
CMYKcmyk(73.3%, 56.7%, 0%, 41.2%)
CIE-LABlab(30.48, 21.20, -49.50)
CIE-LCHlch(30.48, 53.85, 293.19°)
OKLaboklab(40.86% -0.0067 -0.1426)
OKLCHoklch(40.86% 0.143 267.3)
XYZxyz(8.2685, 6.4329, 29.6542)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284196 #967D28
analogous
#287896 #284196 #462896
triadic
#284196 #962841 #419628
tetradic
#284196 #962878 #967D28 #289646
square
#284196 #962878 #967D28 #289646
split-complementary
#284196 #964628 #789628
monochromatic
#0E1735 #1B2C66 #284196 #3556C6 #637DD5

Accessibility & contrast

On white

9.18
#284196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#284196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284196
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284196#FFFFFF#000000##FFFFFF
##2841961.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D99
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #284196;
/* rgb */ color: rgb(40, 65, 150);
/* oklch */ color: oklch(40.9% 0.143 267.3);
Tailwind
colors: {
  custom: {
    50: '#7175b6',
    500: '#284196',
    950: '#000000',
  },
}
SCSS
$custom: #284196;
$custom-light: #7175b6;
$custom-dark: #000000;
JSON
{
  "hex": "#284196",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 150
  },
  "hsl": {
    "h": 226.364,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40856,
    "c": 0.14278,
    "h": 267.3
  },
  "luminance": 0.06434
}

Semantic roles & 50–950 ramp

primary
#284196
secondary
#BBA65F
accent
#BE47E1
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #284196

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

Preview Lab → · Contrast checker → · Palette generator →

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