#283D8A#283D8A

#283D8A is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.0% C 0.131 H 268.2°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#283D8A
RGBrgb(40, 61, 138)
HSLhsl(227, 55%, 35%)
HSVhsv(227, 71%, 54%)
CMYKcmyk(71%, 55.8%, 0%, 45.9%)
CIE-LABlab(28.44, 19.32, -45.44)
CIE-LCHlch(28.44, 49.37, 293.03°)
OKLaboklab(39.03% -0.004 -0.1307)
OKLCHoklch(39.03% 0.131 268.2)
XYZxyz(7.1297, 5.6229, 24.7494)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283D8A #8A7528
analogous
#286E8A #283D8A #44288A
triadic
#283D8A #8A283D #3D8A28
tetradic
#283D8A #8A286E #8A7528 #288A44
square
#283D8A #8A286E #8A7528 #288A44
split-complementary
#283D8A #8A4428 #6E8A28
monochromatic
#0C132B #1A285B #283D8A #3652B9 #5D75D0

Accessibility & contrast

On white

9.88
#283D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#283D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283D8A
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283D8A#FFFFFF#000000##FFFFFF
##283D8A1.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01488D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #283d8a;
/* rgb */ color: rgb(40, 61, 138);
/* oklch */ color: oklch(39.0% 0.131 268.2);
Tailwind
colors: {
  custom: {
    50: '#6f72ad',
    500: '#283d8a',
    950: '#000000',
  },
}
SCSS
$custom: #283d8a;
$custom-light: #6f72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#283d8a",
  "rgb": {
    "r": 40,
    "g": 61,
    "b": 138
  },
  "hsl": {
    "h": 227.143,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3903,
    "c": 0.13078,
    "h": 268.2
  },
  "luminance": 0.05624
}

Semantic roles & 50–950 ramp

primary
#283D8A
secondary
#B5A159
accent
#BE49DE
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #283D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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