#283F7F#283F7F

#283F7F is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.6% C 0.112 H 266.4°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#283F7F
RGBrgb(40, 63, 127)
HSLhsl(224, 52%, 33%)
HSVhsv(224, 69%, 50%)
CMYKcmyk(68.5%, 50.4%, 0%, 50.2%)
CIE-LABlab(28.22, 13.70, -38.96)
CIE-LCHlch(28.22, 41.29, 289.37°)
OKLaboklab(38.6% -0.0071 -0.1116)
OKLCHoklch(38.6% 0.112 266.4)
XYZxyz(6.4820, 5.5378, 20.8019)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F7F #7F6828
analogous
#286A7F #283F7F #3C287F
triadic
#283F7F #7F283F #3F7F28
tetradic
#283F7F #7F286A #7F6828 #287F3C
square
#283F7F #7F286A #7F6828 #287F3C
split-complementary
#283F7F #7F3C28 #6A7F28
monochromatic
#0B1122 #192850 #283F7F #3756AE #5776CA

Accessibility & contrast

On white

9.96
#283F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#283F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283F7F
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F7F#FFFFFF#000000##FFFFFF
##283F7F1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4781
Deuteranopia (green-blind)
#073F7E
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #283f7f;
/* rgb */ color: rgb(40, 63, 127);
/* oklch */ color: oklch(38.6% 0.112 266.4);
Tailwind
colors: {
  custom: {
    50: '#6c73a4',
    500: '#283f7f',
    950: '#000000',
  },
}
SCSS
$custom: #283f7f;
$custom-light: #6c73a4;
$custom-dark: #000000;
JSON
{
  "hex": "#283f7f",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 127
  },
  "hsl": {
    "h": 224.138,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38604,
    "c": 0.11184,
    "h": 266.4
  },
  "luminance": 0.05538
}

Semantic roles & 50–950 ramp

primary
#283F7F
secondary
#AF9754
accent
#B64CDC
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #283F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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