#283A87#283A87

#283A87 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.130 H 269.3°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#283A87
RGBrgb(40, 58, 135)
HSLhsl(229, 54%, 34%)
HSVhsv(229, 70%, 53%)
CMYKcmyk(70.4%, 57%, 0%, 47.1%)
CIE-LABlab(27.37, 20.22, -45.31)
CIE-LCHlch(27.37, 49.62, 294.05°)
OKLaboklab(38.15% -0.0015 -0.1304)
OKLCHoklch(38.15% 0.13 269.3)
XYZxyz(6.7598, 5.2258, 23.5694)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283A87 #877528
analogous
#286A87 #283A87 #462887
triadic
#283A87 #87283A #3A8728
tetradic
#283A87 #87286A #877528 #288746
square
#283A87 #87286A #877528 #288746
split-complementary
#283A87 #874628 #6A8728
monochromatic
#0C1129 #1A2658 #283A87 #364EB6 #5B71CE

Accessibility & contrast

On white

10.27
#283A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#283A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283A87
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283A87#FFFFFF#000000##FFFFFF
##283A871.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#004D5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #283a87;
/* rgb */ color: rgb(40, 58, 135);
/* oklch */ color: oklch(38.2% 0.130 269.3);
Tailwind
colors: {
  custom: {
    50: '#6e6fab',
    500: '#283a87',
    950: '#000000',
  },
}
SCSS
$custom: #283a87;
$custom-light: #6e6fab;
$custom-dark: #000000;
JSON
{
  "hex": "#283a87",
  "rgb": {
    "r": 40,
    "g": 58,
    "b": 135
  },
  "hsl": {
    "h": 228.632,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38151,
    "c": 0.13041,
    "h": 269.3
  },
  "luminance": 0.05226
}

Semantic roles & 50–950 ramp

primary
#283A87
secondary
#B4A257
accent
#C24ADE
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #283A87

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

Preview Lab → · Contrast checker → · Palette generator →

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