#283D8D#283D8D

#283D8D is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.3% C 0.135 H 268.4°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#283D8D
RGBrgb(40, 61, 141)
HSLhsl(228, 56%, 35%)
HSVhsv(228, 72%, 55%)
CMYKcmyk(71.6%, 56.7%, 0%, 44.7%)
CIE-LABlab(28.67, 20.47, -46.92)
CIE-LCHlch(28.67, 51.19, 293.57°)
OKLaboklab(39.28% -0.0038 -0.1351)
OKLCHoklch(39.28% 0.135 268.4)
XYZxyz(7.3499, 5.7110, 25.9091)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283D8D #8D7828
analogous
#286F8D #283D8D #46288D
triadic
#283D8D #8D283D #3D8D28
tetradic
#283D8D #8D286F #8D7828 #288D46
square
#283D8D #8D286F #8D7828 #288D46
split-complementary
#283D8D #8D4628 #6F8D28
monochromatic
#0D142E #1A285D #283D8D #3652BD #5E76D1

Accessibility & contrast

On white

9.80
#283D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#283D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283D8D
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283D8D#FFFFFF#000000##FFFFFF
##283D8D1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #283d8d;
/* rgb */ color: rgb(40, 61, 141);
/* oklch */ color: oklch(39.3% 0.135 268.4);
Tailwind
colors: {
  custom: {
    50: '#7072af',
    500: '#283d8d',
    950: '#000000',
  },
}
SCSS
$custom: #283d8d;
$custom-light: #7072af;
$custom-dark: #000000;
JSON
{
  "hex": "#283d8d",
  "rgb": {
    "r": 40,
    "g": 61,
    "b": 141
  },
  "hsl": {
    "h": 227.525,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39277,
    "c": 0.13512,
    "h": 268.4
  },
  "luminance": 0.05712
}

Semantic roles & 50–950 ramp

primary
#283D8D
secondary
#B7A35A
accent
#C049DF
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #283D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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