#283F8D#283F8D

#283F8D is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.7% C 0.132 H 267.6°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#283F8D
RGBrgb(40, 63, 141)
HSLhsl(226, 56%, 35%)
HSVhsv(226, 72%, 55%)
CMYKcmyk(71.6%, 55.3%, 0%, 44.7%)
CIE-LABlab(29.23, 19.10, -46.01)
CIE-LCHlch(29.23, 49.82, 292.55°)
OKLaboklab(39.7% -0.0056 -0.1324)
OKLCHoklch(39.7% 0.132 267.6)
XYZxyz(7.4586, 5.9285, 25.9454)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F8D #8D7628
analogous
#28718D #283F8D #44288D
triadic
#283F8D #8D283F #3F8D28
tetradic
#283F8D #8D2871 #8D7628 #288D44
square
#283F8D #8D2871 #8D7628 #288D44
split-complementary
#283F8D #8D4428 #718D28
monochromatic
#0D142E #1A2A5D #283F8D #3654BD #5E78D1

Accessibility & contrast

On white

9.61
#283F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#283F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283F8D
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F8D#FFFFFF#000000##FFFFFF
##283F8D1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034A90
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #283f8d;
/* rgb */ color: rgb(40, 63, 141);
/* oklch */ color: oklch(39.7% 0.132 267.6);
Tailwind
colors: {
  custom: {
    50: '#7073af',
    500: '#283f8d',
    950: '#000000',
  },
}
SCSS
$custom: #283f8d;
$custom-light: #7073af;
$custom-dark: #000000;
JSON
{
  "hex": "#283f8d",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 141
  },
  "hsl": {
    "h": 226.337,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39699,
    "c": 0.13249,
    "h": 267.6
  },
  "luminance": 0.05929
}

Semantic roles & 50–950 ramp

primary
#283F8D
secondary
#B7A25A
accent
#BD49DF
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #283F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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