#283F9A#283F9A

#283F9A is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.151 H 268.1°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#283F9A
RGBrgb(40, 63, 154)
HSLhsl(228, 59%, 38%)
HSVhsv(228, 74%, 60%)
CMYKcmyk(74%, 59.1%, 0%, 39.6%)
CIE-LABlab(30.25, 24.09, -52.31)
CIE-LCHlch(30.25, 57.59, 294.73°)
OKLaboklab(40.78% -0.0049 -0.1509)
OKLCHoklch(40.78% 0.151 268.1)
XYZxyz(8.4833, 6.3383, 31.3419)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F9A #9A8328
analogous
#28789A #283F9A #4A289A
triadic
#283F9A #9A283F #3F9A28
tetradic
#283F9A #9A2878 #9A8328 #289A4A
square
#283F9A #9A2878 #9A8328 #289A4A
split-complementary
#283F9A #9A4A28 #789A28
monochromatic
#0F1739 #1B2B69 #283F9A #3553CA #657CD7

Accessibility & contrast

On white

9.26
#283F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#283F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283F9A
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F9A#FFFFFF#000000##FFFFFF
##283F9A1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #283f9a;
/* rgb */ color: rgb(40, 63, 154);
/* oklch */ color: oklch(40.8% 0.151 268.1);
Tailwind
colors: {
  custom: {
    50: '#7373b9',
    500: '#283f9a',
    950: '#000000',
  },
}
SCSS
$custom: #283f9a;
$custom-light: #7373b9;
$custom-dark: #000000;
JSON
{
  "hex": "#283f9a",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 154
  },
  "hsl": {
    "h": 227.895,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40785,
    "c": 0.15098,
    "h": 268.1
  },
  "luminance": 0.06339
}

Semantic roles & 50–950 ramp

primary
#283F9A
secondary
#BDAA61
accent
#C246E2
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #283F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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