#283897#283897

#283897 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.1% C 0.156 H 270.1°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#283897
RGBrgb(40, 56, 151)
HSLhsl(231, 58%, 37%)
HSVhsv(231, 74%, 59%)
CMYKcmyk(73.5%, 62.9%, 0%, 40.8%)
CIE-LABlab(28.15, 27.66, -53.91)
CIE-LCHlch(28.15, 60.59, 297.16°)
OKLaboklab(39.15% 0.0003 -0.1557)
OKLCHoklch(39.15% 0.156 270.1)
XYZxyz(7.8733, 5.5130, 29.9213)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283897 #978728
analogous
#287097 #283897 #4F2897
triadic
#283897 #972838 #389728
tetradic
#283897 #972870 #978728 #28974F
square
#283897 #972870 #978728 #28974F
split-complementary
#283897 #974F28 #709728
monochromatic
#0E1436 #1B2667 #283897 #354AC7 #6474D6

Accessibility & contrast

On white

9.99
#283897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#283897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283897
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283897#FFFFFF#000000##FFFFFF
##2838971.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #283897;
/* rgb */ color: rgb(40, 56, 151);
/* oklch */ color: oklch(39.1% 0.156 270.1);
Tailwind
colors: {
  custom: {
    50: '#726eb6',
    500: '#283897',
    950: '#000000',
  },
}
SCSS
$custom: #283897;
$custom-light: #726eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#283897",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 231.351,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39145,
    "c": 0.15568,
    "h": 270.1
  },
  "luminance": 0.05514
}

Semantic roles & 50–950 ramp

primary
#283897
secondary
#BCAE5F
accent
#CB46E1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #283897

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

Preview Lab → · Contrast checker → · Palette generator →

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