#283B81#283B81

#283B81 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 37.9% C 0.120 H 268.6°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#283B81
RGBrgb(40, 59, 129)
HSLhsl(227, 53%, 33%)
HSVhsv(227, 69%, 51%)
CMYKcmyk(69%, 54.3%, 0%, 49.4%)
CIE-LABlab(27.20, 17.23, -41.85)
CIE-LCHlch(27.20, 45.26, 292.38°)
OKLaboklab(37.88% -0.0029 -0.1202)
OKLCHoklch(37.88% 0.12 268.6)
XYZxyz(6.4001, 5.1634, 21.4240)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283B81 #816E28
analogous
#286781 #283B81 #412881
triadic
#283B81 #81283B #3B8128
tetradic
#283B81 #812867 #816E28 #288141
square
#283B81 #812867 #816E28 #288141
split-complementary
#283B81 #814128 #678128
monochromatic
#0B1024 #1A2652 #283B81 #3650B0 #5871CB

Accessibility & contrast

On white

10.33
#283B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#283B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283B81
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283B81#FFFFFF#000000##FFFFFF
##283B811.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4483
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#004C58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #283b81;
/* rgb */ color: rgb(40, 59, 129);
/* oklch */ color: oklch(37.9% 0.120 268.6);
Tailwind
colors: {
  custom: {
    50: '#6d70a6',
    500: '#283b81',
    950: '#000000',
  },
}
SCSS
$custom: #283b81;
$custom-light: #6d70a6;
$custom-dark: #000000;
JSON
{
  "hex": "#283b81",
  "rgb": {
    "r": 40,
    "g": 59,
    "b": 129
  },
  "hsl": {
    "h": 227.191,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37876,
    "c": 0.12023,
    "h": 268.6
  },
  "luminance": 0.05164
}

Semantic roles & 50–950 ramp

primary
#283B81
secondary
#B09D54
accent
#BD4CDC
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #283B81

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

Preview Lab → · Contrast checker → · Palette generator →

#283B81 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva