#283F8F#283F8F

#283F8F is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.135 H 267.7°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#283F8F
RGBrgb(40, 63, 143)
HSLhsl(227, 56%, 36%)
HSVhsv(227, 72%, 56%)
CMYKcmyk(72%, 55.9%, 0%, 43.9%)
CIE-LABlab(29.38, 19.87, -46.99)
CIE-LCHlch(29.38, 51.02, 292.92°)
OKLaboklab(39.86% -0.0054 -0.1353)
OKLCHoklch(39.86% 0.135 267.7)
XYZxyz(7.6088, 5.9885, 26.7362)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F8F #8F7828
analogous
#28728F #283F8F #44288F
triadic
#283F8F #8F283F #3F8F28
tetradic
#283F8F #8F2872 #8F7828 #288F44
square
#283F8F #8F2872 #8F7828 #288F44
split-complementary
#283F8F #8F4428 #728F28
monochromatic
#0D152F #1B2A5F #283F8F #3554BF #5F79D2

Accessibility & contrast

On white

9.56
#283F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#283F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283F8F
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F8F#FFFFFF#000000##FFFFFF
##283F8F1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #283f8f;
/* rgb */ color: rgb(40, 63, 143);
/* oklch */ color: oklch(39.9% 0.135 267.7);
Tailwind
colors: {
  custom: {
    50: '#7073b0',
    500: '#283f8f',
    950: '#000000',
  },
}
SCSS
$custom: #283f8f;
$custom-light: #7073b0;
$custom-dark: #000000;
JSON
{
  "hex": "#283f8f",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 143
  },
  "hsl": {
    "h": 226.602,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39861,
    "c": 0.13538,
    "h": 267.7
  },
  "luminance": 0.05989
}

Semantic roles & 50–950 ramp

primary
#283F8F
secondary
#B8A35B
accent
#BE48E0
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #283F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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