#283F89#283F89

#283F89 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.127 H 267.3°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#283F89
RGBrgb(40, 63, 137)
HSLhsl(226, 55%, 35%)
HSVhsv(226, 71%, 54%)
CMYKcmyk(70.8%, 54%, 0%, 46.3%)
CIE-LABlab(28.93, 17.56, -44.02)
CIE-LCHlch(28.93, 47.39, 291.74°)
OKLaboklab(39.38% -0.0059 -0.1265)
OKLCHoklch(39.38% 0.127 267.3)
XYZxyz(7.1664, 5.8116, 24.4061)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F89 #897228
analogous
#287089 #283F89 #422889
triadic
#283F89 #89283F #3F8928
tetradic
#283F89 #892870 #897228 #288942
square
#283F89 #892870 #897228 #288942
split-complementary
#283F89 #894228 #708928
monochromatic
#0C132A #1A295A #283F89 #3655B8 #5C77CF

Accessibility & contrast

On white

9.71
#283F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#283F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283F89
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F89#FFFFFF#000000##FFFFFF
##283F891.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E498C
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #283f89;
/* rgb */ color: rgb(40, 63, 137);
/* oklch */ color: oklch(39.4% 0.127 267.3);
Tailwind
colors: {
  custom: {
    50: '#6f73ac',
    500: '#283f89',
    950: '#000000',
  },
}
SCSS
$custom: #283f89;
$custom-light: #6f73ac;
$custom-dark: #000000;
JSON
{
  "hex": "#283f89",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 137
  },
  "hsl": {
    "h": 225.773,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39377,
    "c": 0.12667,
    "h": 267.3
  },
  "luminance": 0.05812
}

Semantic roles & 50–950 ramp

primary
#283F89
secondary
#B59F58
accent
#BB4ADE
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #283F89

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

Preview Lab → · Contrast checker → · Palette generator →

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