#283887#283887

#283887 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.7% C 0.133 H 270.1°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#283887
RGBrgb(40, 56, 135)
HSLhsl(230, 54%, 34%)
HSVhsv(230, 70%, 53%)
CMYKcmyk(70.4%, 58.5%, 0%, 47.1%)
CIE-LABlab(26.81, 21.60, -46.21)
CIE-LCHlch(26.81, 51.01, 295.05°)
OKLaboklab(37.74% 0.0003 -0.1331)
OKLCHoklch(37.74% 0.133 270.1)
XYZxyz(6.6609, 5.0281, 23.5365)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283887 #877728
analogous
#286887 #283887 #482887
triadic
#283887 #872838 #388728
tetradic
#283887 #872868 #877728 #288748
square
#283887 #872868 #877728 #288748
split-complementary
#283887 #874828 #688728
monochromatic
#0C1129 #1A2458 #283887 #364CB6 #5B6ECE

Accessibility & contrast

On white

10.47
#283887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#283887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283887
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283887#FFFFFF#000000##FFFFFF
##2838871.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#004B5A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #283887;
/* rgb */ color: rgb(40, 56, 135);
/* oklch */ color: oklch(37.7% 0.133 270.1);
Tailwind
colors: {
  custom: {
    50: '#6f6eab',
    500: '#283887',
    950: '#000000',
  },
}
SCSS
$custom: #283887;
$custom-light: #6f6eab;
$custom-dark: #000000;
JSON
{
  "hex": "#283887",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 135
  },
  "hsl": {
    "h": 229.895,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37736,
    "c": 0.13307,
    "h": 270.1
  },
  "luminance": 0.05029
}

Semantic roles & 50–950 ramp

primary
#283887
secondary
#B4A457
accent
#C54ADE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #283887

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

Preview Lab → · Contrast checker → · Palette generator →

#283887 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva