#283F9F#283F9F

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

Color values

HEX#283F9F
RGBrgb(40, 63, 159)
HSLhsl(228, 60%, 39%)
HSVhsv(228, 75%, 62%)
CMYKcmyk(74.8%, 60.4%, 0%, 37.6%)
CIE-LABlab(30.66, 26.00, -54.68)
CIE-LCHlch(30.66, 60.54, 295.43°)
OKLaboklab(41.22% -0.0048 -0.1578)
OKLCHoklch(41.22% 0.158 268.2)
XYZxyz(8.9084, 6.5084, 33.5809)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F9F #9F8828
analogous
#287B9F #283F9F #4D289F
triadic
#283F9F #9F283F #3F9F28
tetradic
#283F9F #9F287B #9F8828 #289F4D
square
#283F9F #9F287B #9F8828 #289F4D
split-complementary
#283F9F #9F4D28 #7B9F28
monochromatic
#0F183D #1C2C6E #283F9F #3754CD #687ED9

Accessibility & contrast

On white

9.12
#283F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #283F9F
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F9F#FFFFFF#000000##FFFFFF
##283F9F1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #283f9f;
/* rgb */ color: rgb(40, 63, 159);
/* oklch */ color: oklch(41.2% 0.158 268.2);
Tailwind
colors: {
  custom: {
    50: '#7473bc',
    500: '#283f9f',
    950: '#000000',
  },
}
SCSS
$custom: #283f9f;
$custom-light: #7473bc;
$custom-dark: #000000;
JSON
{
  "hex": "#283f9f",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 159
  },
  "hsl": {
    "h": 228.403,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41219,
    "c": 0.15792,
    "h": 268.2
  },
  "luminance": 0.06509
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #283F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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