#283397#283397

#283397 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.2% C 0.162 H 271.4°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#283397
RGBrgb(40, 51, 151)
HSLhsl(234, 58%, 37%)
HSVhsv(234, 74%, 59%)
CMYKcmyk(73.5%, 66.2%, 0%, 40.8%)
CIE-LABlab(26.88, 30.97, -55.98)
CIE-LCHlch(26.88, 63.98, 298.95°)
OKLaboklab(38.21% 0.0039 -0.1618)
OKLCHoklch(38.21% 0.162 271.4)
XYZxyz(7.6429, 5.0524, 29.8446)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283397 #978C28
analogous
#286B97 #283397 #542897
triadic
#283397 #972833 #339728
tetradic
#283397 #97286B #978C28 #289754
square
#283397 #97286B #978C28 #289754
split-complementary
#283397 #975428 #6B9728
monochromatic
#0E1236 #1B2367 #283397 #3543C7 #646FD6

Accessibility & contrast

On white

10.44
#283397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#283397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283397
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283397#FFFFFF#000000##FFFFFF
##2833971.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #283397;
/* rgb */ color: rgb(40, 51, 151);
/* oklch */ color: oklch(38.2% 0.162 271.4);
Tailwind
colors: {
  custom: {
    50: '#736bb7',
    500: '#283397',
    950: '#000000',
  },
}
SCSS
$custom: #283397;
$custom-light: #736bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#283397",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 234.054,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38214,
    "c": 0.16184,
    "h": 271.4
  },
  "luminance": 0.05053
}

Semantic roles & 50–950 ramp

primary
#283397
secondary
#BCB25F
accent
#D246E1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #283397

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

Preview Lab → · Contrast checker → · Palette generator →

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