#283F87#283F87

#283F87 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.2% C 0.124 H 267.2°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#283F87
RGBrgb(40, 63, 135)
HSLhsl(225, 54%, 34%)
HSVhsv(225, 70%, 53%)
CMYKcmyk(70.4%, 53.3%, 0%, 47.1%)
CIE-LABlab(28.79, 16.79, -43.02)
CIE-LCHlch(28.79, 46.18, 291.31°)
OKLaboklab(39.22% -0.0061 -0.1236)
OKLCHoklch(39.22% 0.124 267.2)
XYZxyz(7.0242, 5.7547, 23.6576)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F87 #877028
analogous
#286F87 #283F87 #412887
triadic
#283F87 #87283F #3F8728
tetradic
#283F87 #87286F #877028 #288741
square
#283F87 #87286F #877028 #288741
split-complementary
#283F87 #874128 #6F8728
monochromatic
#0C1329 #1A2958 #283F87 #3655B6 #5B77CE

Accessibility & contrast

On white

9.76
#283F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#283F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283F87
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F87#FFFFFF#000000##FFFFFF
##283F871.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12488A
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #283f87;
/* rgb */ color: rgb(40, 63, 135);
/* oklch */ color: oklch(39.2% 0.124 267.2);
Tailwind
colors: {
  custom: {
    50: '#6e73aa',
    500: '#283f87',
    950: '#000000',
  },
}
SCSS
$custom: #283f87;
$custom-light: #6e73aa;
$custom-dark: #000000;
JSON
{
  "hex": "#283f87",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 225.474,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39219,
    "c": 0.12373,
    "h": 267.2
  },
  "luminance": 0.05755
}

Semantic roles & 50–950 ramp

primary
#283F87
secondary
#B49D57
accent
#BA4ADE
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #283F87

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

Preview Lab → · Contrast checker → · Palette generator →

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