#283F78#283F78

#283F78 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.1% C 0.101 H 265.4°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#283F78
RGBrgb(40, 63, 120)
HSLhsl(223, 50%, 31%)
HSVhsv(223, 67%, 47%)
CMYKcmyk(66.7%, 47.5%, 0%, 52.9%)
CIE-LABlab(27.74, 11.01, -35.32)
CIE-LCHlch(27.74, 37.00, 287.31°)
OKLaboklab(38.09% -0.0082 -0.1009)
OKLCHoklch(38.09% 0.101 265.4)
XYZxyz(6.0416, 5.3616, 18.4822)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F78 #786128
analogous
#286778 #283F78 #392878
triadic
#283F78 #78283F #3F7828
tetradic
#283F78 #782867 #786128 #287839
square
#283F78 #782867 #786128 #287839
split-complementary
#283F78 #783928 #677828
monochromatic
#090F1C #19274A #283F78 #3757A6 #5475C6

Accessibility & contrast

On white

10.13
#283F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#283F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283F78
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F78#FFFFFF#000000##FFFFFF
##283F781.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23457A
Deuteranopia (green-blind)
#153E77
Tritanopia (blue-blind)
#004C55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #283f78;
/* rgb */ color: rgb(40, 63, 120);
/* oklch */ color: oklch(38.1% 0.101 265.4);
Tailwind
colors: {
  custom: {
    50: '#6b739f',
    500: '#283f78',
    950: '#000000',
  },
}
SCSS
$custom: #283f78;
$custom-light: #6b739f;
$custom-dark: #000000;
JSON
{
  "hex": "#283f78",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 120
  },
  "hsl": {
    "h": 222.75,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38089,
    "c": 0.10126,
    "h": 265.4
  },
  "luminance": 0.05362
}

Semantic roles & 50–950 ramp

primary
#283F78
secondary
#AA9152
accent
#B14EDA
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #283F78

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

Preview Lab → · Contrast checker → · Palette generator →

#283F78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva