#283791#283791

#283791 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.4% C 0.149 H 270.5°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#283791
RGBrgb(40, 55, 145)
HSLhsl(231, 57%, 36%)
HSVhsv(231, 72%, 57%)
CMYKcmyk(72.4%, 62.1%, 0%, 43.1%)
CIE-LABlab(27.37, 26.07, -51.49)
CIE-LCHlch(27.37, 57.72, 296.86°)
OKLaboklab(38.41% 0.0012 -0.1486)
OKLCHoklch(38.41% 0.149 270.5)
XYZxyz(7.3504, 5.2271, 27.4041)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283791 #918228
analogous
#286C91 #283791 #4E2891
triadic
#283791 #912837 #379128
tetradic
#283791 #91286C #918228 #28914E
square
#283791 #91286C #918228 #28914E
split-complementary
#283791 #914E28 #6C9128
monochromatic
#0E1331 #1B2561 #283791 #3549C1 #6071D3

Accessibility & contrast

On white

10.27
#283791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#283791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283791
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283791#FFFFFF#000000##FFFFFF
##2837911.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#003C8F
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #283791;
/* rgb */ color: rgb(40, 55, 145);
/* oklch */ color: oklch(38.4% 0.149 270.5);
Tailwind
colors: {
  custom: {
    50: '#716db2',
    500: '#283791',
    950: '#000000',
  },
}
SCSS
$custom: #283791;
$custom-light: #716db2;
$custom-dark: #000000;
JSON
{
  "hex": "#283791",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 231.429,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3841,
    "c": 0.14861,
    "h": 270.5
  },
  "luminance": 0.05228
}

Semantic roles & 50–950 ramp

primary
#283791
secondary
#B9AB5C
accent
#CA48E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #283791

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

Preview Lab → · Contrast checker → · Palette generator →

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