#283399#283399

#283399 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.165 H 271.3°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#283399
RGBrgb(40, 51, 153)
HSLhsl(234, 59%, 38%)
HSVhsv(234, 74%, 60%)
CMYKcmyk(73.9%, 66.7%, 0%, 40%)
CIE-LABlab(27.07, 31.71, -56.90)
CIE-LCHlch(27.07, 65.14, 299.13°)
OKLaboklab(38.41% 0.0037 -0.1645)
OKLCHoklch(38.41% 0.165 271.3)
XYZxyz(7.8067, 5.1179, 30.7072)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283399 #998E28
analogous
#286C99 #283399 #552899
triadic
#283399 #992833 #339928
tetradic
#283399 #99286C #998E28 #289955
square
#283399 #99286C #998E28 #289955
split-complementary
#283399 #995528 #6C9928
monochromatic
#0F1338 #1B2368 #283399 #3543CA #6570D7

Accessibility & contrast

On white

10.38
#283399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#283399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283399
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283399#FFFFFF#000000##FFFFFF
##2833991.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #283399;
/* rgb */ color: rgb(40, 51, 153);
/* oklch */ color: oklch(38.4% 0.165 271.3);
Tailwind
colors: {
  custom: {
    50: '#736bb8',
    500: '#283399',
    950: '#000000',
  },
}
SCSS
$custom: #283399;
$custom-light: #736bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#283399",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 234.159,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38406,
    "c": 0.16453,
    "h": 271.3
  },
  "luminance": 0.05119
}

Semantic roles & 50–950 ramp

primary
#283399
secondary
#BDB460
accent
#D346E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #283399

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

Preview Lab → · Contrast checker → · Palette generator →

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