#283797#283797

#283797 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.0% C 0.157 H 270.4°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#283797
RGBrgb(40, 55, 151)
HSLhsl(232, 58%, 37%)
HSVhsv(232, 74%, 59%)
CMYKcmyk(73.5%, 63.6%, 0%, 40.8%)
CIE-LABlab(27.89, 28.33, -54.33)
CIE-LCHlch(27.89, 61.27, 297.54°)
OKLaboklab(38.96% 0.0011 -0.1569)
OKLCHoklch(38.96% 0.157 270.4)
XYZxyz(7.8253, 5.4171, 29.9053)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283797 #978828
analogous
#286E97 #283797 #512897
triadic
#283797 #972837 #379728
tetradic
#283797 #97286E #978828 #289751
square
#283797 #97286E #978828 #289751
split-complementary
#283797 #975128 #6E9728
monochromatic
#0E1436 #1B2567 #283797 #3549C7 #6473D6

Accessibility & contrast

On white

10.08
#283797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#283797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283797
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283797#FFFFFF#000000##FFFFFF
##2837971.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #283797;
/* rgb */ color: rgb(40, 55, 151);
/* oklch */ color: oklch(39.0% 0.157 270.4);
Tailwind
colors: {
  custom: {
    50: '#726db6',
    500: '#283797',
    950: '#000000',
  },
}
SCSS
$custom: #283797;
$custom-light: #726db6;
$custom-dark: #000000;
JSON
{
  "hex": "#283797",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 231.892,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38955,
    "c": 0.15692,
    "h": 270.4
  },
  "luminance": 0.05418
}

Semantic roles & 50–950 ramp

primary
#283797
secondary
#BCAF5F
accent
#CC46E1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #283797

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

Preview Lab → · Contrast checker → · Palette generator →

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