#283794#283794

#283794 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.7% C 0.153 H 270.4°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#283794
RGBrgb(40, 55, 148)
HSLhsl(232, 57%, 37%)
HSVhsv(232, 73%, 58%)
CMYKcmyk(73%, 62.8%, 0%, 42%)
CIE-LABlab(27.63, 27.20, -52.92)
CIE-LCHlch(27.63, 59.50, 297.21°)
OKLaboklab(38.68% 0.0012 -0.1528)
OKLCHoklch(38.68% 0.153 270.4)
XYZxyz(7.5847, 5.3208, 28.6385)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283794 #948528
analogous
#286D94 #283794 #4F2894
triadic
#283794 #942837 #379428
tetradic
#283794 #94286D #948528 #28944F
square
#283794 #94286D #948528 #28944F
split-complementary
#283794 #944F28 #6D9428
monochromatic
#0E1334 #1B2564 #283794 #3549C4 #6272D5

Accessibility & contrast

On white

10.17
#283794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#283794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283794
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283794#FFFFFF#000000##FFFFFF
##2837941.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#003C92
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #283794;
/* rgb */ color: rgb(40, 55, 148);
/* oklch */ color: oklch(38.7% 0.153 270.4);
Tailwind
colors: {
  custom: {
    50: '#726db4',
    500: '#283794',
    950: '#000000',
  },
}
SCSS
$custom: #283794;
$custom-light: #726db4;
$custom-dark: #000000;
JSON
{
  "hex": "#283794",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 148
  },
  "hsl": {
    "h": 231.667,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38681,
    "c": 0.15278,
    "h": 270.4
  },
  "luminance": 0.05322
}

Semantic roles & 50–950 ramp

primary
#283794
secondary
#BAAD5E
accent
#CB47E1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #283794

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

Preview Lab → · Contrast checker → · Palette generator →

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