#284197#284197

#284197 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.9% C 0.144 H 267.4°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#284197
RGBrgb(40, 65, 151)
HSLhsl(226, 58%, 37%)
HSVhsv(226, 74%, 59%)
CMYKcmyk(73.5%, 57%, 0%, 40.8%)
CIE-LABlab(30.56, 21.59, -49.99)
CIE-LCHlch(30.56, 54.45, 293.36°)
OKLaboklab(40.94% -0.0066 -0.144)
OKLCHoklch(40.94% 0.144 267.4)
XYZxyz(8.3493, 6.4652, 30.0800)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284197 #977E28
analogous
#287997 #284197 #462897
triadic
#284197 #972841 #419728
tetradic
#284197 #972879 #977E28 #289746
square
#284197 #972879 #977E28 #289746
split-complementary
#284197 #974628 #799728
monochromatic
#0E1736 #1B2C67 #284197 #3556C7 #647DD6

Accessibility & contrast

On white

9.16
#284197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284197
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284197#FFFFFF#000000##FFFFFF
##2841971.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #284197;
/* rgb */ color: rgb(40, 65, 151);
/* oklch */ color: oklch(40.9% 0.144 267.4);
Tailwind
colors: {
  custom: {
    50: '#7275b6',
    500: '#284197',
    950: '#000000',
  },
}
SCSS
$custom: #284197;
$custom-light: #7275b6;
$custom-dark: #000000;
JSON
{
  "hex": "#284197",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 151
  },
  "hsl": {
    "h": 226.486,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40939,
    "c": 0.14419,
    "h": 267.4
  },
  "luminance": 0.06466
}

Semantic roles & 50–950 ramp

primary
#284197
secondary
#BCA75F
accent
#BE46E1
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #284197

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

Preview Lab → · Contrast checker → · Palette generator →

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