#283C87#283C87

#283C87 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.6% C 0.128 H 268.5°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#283C87
RGBrgb(40, 60, 135)
HSLhsl(227, 54%, 34%)
HSVhsv(227, 70%, 53%)
CMYKcmyk(70.4%, 55.6%, 0%, 47.1%)
CIE-LABlab(27.93, 18.85, -44.40)
CIE-LCHlch(27.93, 48.24, 293.00°)
OKLaboklab(38.57% -0.0033 -0.1277)
OKLCHoklch(38.57% 0.128 268.5)
XYZxyz(6.8626, 5.4314, 23.6037)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283C87 #877328
analogous
#286C87 #283C87 #432887
triadic
#283C87 #87283C #3C8728
tetradic
#283C87 #87286C #877328 #288743
square
#283C87 #87286C #877328 #288743
split-complementary
#283C87 #874328 #6C8728
monochromatic
#0C1229 #1A2758 #283C87 #3651B6 #5B73CE

Accessibility & contrast

On white

10.07
#283C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#283C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283C87
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283C87#FFFFFF#000000##FFFFFF
##283C871.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04468A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#004E5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #283c87;
/* rgb */ color: rgb(40, 60, 135);
/* oklch */ color: oklch(38.6% 0.128 268.5);
Tailwind
colors: {
  custom: {
    50: '#6e71ab',
    500: '#283c87',
    950: '#000000',
  },
}
SCSS
$custom: #283c87;
$custom-light: #6e71ab;
$custom-dark: #000000;
JSON
{
  "hex": "#283c87",
  "rgb": {
    "r": 40,
    "g": 60,
    "b": 135
  },
  "hsl": {
    "h": 227.368,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38574,
    "c": 0.12773,
    "h": 268.5
  },
  "luminance": 0.05432
}

Semantic roles & 50–950 ramp

primary
#283C87
secondary
#B4A057
accent
#BF4ADE
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #283C87

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

Preview Lab → · Contrast checker → · Palette generator →

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