#283899#283899

#283899 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.3% C 0.158 H 270.1°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#283899
RGBrgb(40, 56, 153)
HSLhsl(232, 59%, 38%)
HSVhsv(232, 74%, 60%)
CMYKcmyk(73.9%, 63.4%, 0%, 40%)
CIE-LABlab(28.32, 28.41, -54.85)
CIE-LCHlch(28.32, 61.77, 297.39°)
OKLaboklab(39.33% 0.0003 -0.1584)
OKLCHoklch(39.33% 0.158 270.1)
XYZxyz(8.0370, 5.5785, 30.7840)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283899 #998928
analogous
#287199 #283899 #502899
triadic
#283899 #992838 #389928
tetradic
#283899 #992871 #998928 #289950
square
#283899 #992871 #998928 #289950
split-complementary
#283899 #995028 #719928
monochromatic
#0F1438 #1B2668 #283899 #354ACA #6575D7

Accessibility & contrast

On white

9.93
#283899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#283899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283899
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283899#FFFFFF#000000##FFFFFF
##2838991.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#003E97
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #283899;
/* rgb */ color: rgb(40, 56, 153);
/* oklch */ color: oklch(39.3% 0.158 270.1);
Tailwind
colors: {
  custom: {
    50: '#736eb8',
    500: '#283899',
    950: '#000000',
  },
}
SCSS
$custom: #283899;
$custom-light: #736eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#283899",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 153
  },
  "hsl": {
    "h": 231.504,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39327,
    "c": 0.15843,
    "h": 270.1
  },
  "luminance": 0.05579
}

Semantic roles & 50–950 ramp

primary
#283899
secondary
#BDAF60
accent
#CC46E2
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #283899

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

Preview Lab → · Contrast checker → · Palette generator →

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