#283381#283381

#283381 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.131 H 272.0°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#283381
RGBrgb(40, 51, 129)
HSLhsl(233, 53%, 33%)
HSVhsv(233, 69%, 51%)
CMYKcmyk(69%, 60.5%, 0%, 49.4%)
CIE-LABlab(24.96, 22.75, -45.47)
CIE-LCHlch(24.96, 50.84, 296.58°)
OKLaboklab(36.2% 0.0046 -0.131)
OKLCHoklch(36.2% 0.131 272)
XYZxyz(6.0200, 4.4032, 21.2973)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283381 #817628
analogous
#285F81 #283381 #492881
triadic
#283381 #812833 #338128
tetradic
#283381 #81285F #817628 #288149
square
#283381 #81285F #817628 #288149
split-complementary
#283381 #814928 #5F8128
monochromatic
#0B0E24 #1A2152 #283381 #3645B0 #5866CB

Accessibility & contrast

On white

11.17
#283381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#283381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283381
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283381#FFFFFF#000000##FFFFFF
##2833811.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#004654
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #283381;
/* rgb */ color: rgb(40, 51, 129);
/* oklch */ color: oklch(36.2% 0.131 272.0);
Tailwind
colors: {
  custom: {
    50: '#6e6aa6',
    500: '#283381',
    950: '#000000',
  },
}
SCSS
$custom: #283381;
$custom-light: #6e6aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#283381",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 129
  },
  "hsl": {
    "h": 232.584,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36202,
    "c": 0.13104,
    "h": 272
  },
  "luminance": 0.04404
}

Semantic roles & 50–950 ramp

primary
#283381
secondary
#B0A554
accent
#CA4CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #283381

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

Preview Lab → · Contrast checker → · Palette generator →

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