#283787#283787

#283787 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.5% C 0.134 H 270.5°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#283787
RGBrgb(40, 55, 135)
HSLhsl(231, 54%, 34%)
HSVhsv(231, 70%, 53%)
CMYKcmyk(70.4%, 59.3%, 0%, 47.1%)
CIE-LABlab(26.54, 22.28, -46.66)
CIE-LCHlch(26.54, 51.71, 295.53°)
OKLaboklab(37.53% 0.0012 -0.1344)
OKLCHoklch(37.53% 0.134 270.5)
XYZxyz(6.6129, 4.9321, 23.5205)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283787 #877828
analogous
#286787 #283787 #492887
triadic
#283787 #872837 #378728
tetradic
#283787 #872867 #877828 #288749
square
#283787 #872867 #877828 #288749
split-complementary
#283787 #874928 #678728
monochromatic
#0C1129 #1A2458 #283787 #364AB6 #5B6DCE

Accessibility & contrast

On white

10.57
#283787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#283787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283787
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283787#FFFFFF#000000##FFFFFF
##2837871.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #283787;
/* rgb */ color: rgb(40, 55, 135);
/* oklch */ color: oklch(37.5% 0.134 270.5);
Tailwind
colors: {
  custom: {
    50: '#6f6dab',
    500: '#283787',
    950: '#000000',
  },
}
SCSS
$custom: #283787;
$custom-light: #6f6dab;
$custom-dark: #000000;
JSON
{
  "hex": "#283787",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 135
  },
  "hsl": {
    "h": 230.526,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37531,
    "c": 0.1344,
    "h": 270.5
  },
  "luminance": 0.04933
}

Semantic roles & 50–950 ramp

primary
#283787
secondary
#B4A557
accent
#C64ADE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #283787

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

Preview Lab → · Contrast checker → · Palette generator →

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