#284397#284397

#284397 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.4% C 0.142 H 266.6°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#284397
RGBrgb(40, 67, 151)
HSLhsl(225, 58%, 37%)
HSVhsv(225, 74%, 59%)
CMYKcmyk(73.5%, 55.6%, 0%, 40.8%)
CIE-LABlab(31.11, 20.23, -49.09)
CIE-LCHlch(31.11, 53.09, 292.40°)
OKLaboklab(41.36% -0.0083 -0.1414)
OKLCHoklch(41.36% 0.142 266.6)
XYZxyz(8.4662, 6.6989, 30.1190)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284397 #977C28
analogous
#287B97 #284397 #442897
triadic
#284397 #972843 #439728
tetradic
#284397 #97287B #977C28 #289744
square
#284397 #97287B #977C28 #289744
split-complementary
#284397 #974428 #7B9728
monochromatic
#0E1836 #1B2E67 #284397 #3558C7 #647FD6

Accessibility & contrast

On white

8.97
#284397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#284397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284397
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284397#FFFFFF#000000##FFFFFF
##2843971.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #284397;
/* rgb */ color: rgb(40, 67, 151);
/* oklch */ color: oklch(41.4% 0.142 266.6);
Tailwind
colors: {
  custom: {
    50: '#7276b6',
    500: '#284397',
    950: '#000000',
  },
}
SCSS
$custom: #284397;
$custom-light: #7276b6;
$custom-dark: #000000;
JSON
{
  "hex": "#284397",
  "rgb": {
    "r": 40,
    "g": 67,
    "b": 151
  },
  "hsl": {
    "h": 225.405,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41357,
    "c": 0.1416,
    "h": 266.6
  },
  "luminance": 0.067
}

Semantic roles & 50–950 ramp

primary
#284397
secondary
#BCA55F
accent
#BC46E1
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #284397

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

Preview Lab → · Contrast checker → · Palette generator →

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