#283F9E#283F9E

#283F9E is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.157 H 268.2°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#283F9E
RGBrgb(40, 63, 158)
HSLhsl(228, 60%, 39%)
HSVhsv(228, 75%, 62%)
CMYKcmyk(74.7%, 60.1%, 0%, 38%)
CIE-LABlab(30.58, 25.62, -54.21)
CIE-LCHlch(30.58, 59.96, 295.30°)
OKLaboklab(41.13% -0.0048 -0.1565)
OKLCHoklch(41.13% 0.157 268.2)
XYZxyz(8.8220, 6.4738, 33.1258)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F9E #9E8728
analogous
#287A9E #283F9E #4C289E
triadic
#283F9E #9E283F #3F9E28
tetradic
#283F9E #9E287A #9E8728 #289E4C
square
#283F9E #9E287A #9E8728 #289E4C
split-complementary
#283F9E #9E4C28 #7A9E28
monochromatic
#0F183C #1C2C6D #283F9E #3754CC #687ED9

Accessibility & contrast

On white

9.15
#283F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#283F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283F9E
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F9E#FFFFFF#000000##FFFFFF
##283F9E1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #283f9e;
/* rgb */ color: rgb(40, 63, 158);
/* oklch */ color: oklch(41.1% 0.157 268.2);
Tailwind
colors: {
  custom: {
    50: '#7473bb',
    500: '#283f9e',
    950: '#000000',
  },
}
SCSS
$custom: #283f9e;
$custom-light: #7473bb;
$custom-dark: #000000;
JSON
{
  "hex": "#283f9e",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 158
  },
  "hsl": {
    "h": 228.305,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41131,
    "c": 0.15655,
    "h": 268.2
  },
  "luminance": 0.06475
}

Semantic roles & 50–950 ramp

primary
#283F9E
secondary
#BFAD63
accent
#C445E3
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #283F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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