#283F9C#283F9C

#283F9C is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.154 H 268.2°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#283F9C
RGBrgb(40, 63, 156)
HSLhsl(228, 59%, 38%)
HSVhsv(228, 74%, 61%)
CMYKcmyk(74.4%, 59.6%, 0%, 38.8%)
CIE-LABlab(30.41, 24.86, -53.26)
CIE-LCHlch(30.41, 58.78, 295.02°)
OKLaboklab(40.96% -0.0049 -0.1537)
OKLCHoklch(40.96% 0.154 268.2)
XYZxyz(8.6513, 6.4055, 32.2265)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F9C #9C8528
analogous
#28799C #283F9C #4B289C
triadic
#283F9C #9C283F #3F9C28
tetradic
#283F9C #9C2879 #9C8528 #289C4B
square
#283F9C #9C2879 #9C8528 #289C4B
split-complementary
#283F9C #9C4B28 #799C28
monochromatic
#0F183B #1C2B6B #283F9C #3653CB #677DD8

Accessibility & contrast

On white

9.21
#283F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#283F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283F9C
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F9C#FFFFFF#000000##FFFFFF
##283F9C1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #283f9c;
/* rgb */ color: rgb(40, 63, 156);
/* oklch */ color: oklch(41.0% 0.154 268.2);
Tailwind
colors: {
  custom: {
    50: '#7373ba',
    500: '#283f9c',
    950: '#000000',
  },
}
SCSS
$custom: #283f9c;
$custom-light: #7373ba;
$custom-dark: #000000;
JSON
{
  "hex": "#283f9c",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 156
  },
  "hsl": {
    "h": 228.103,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40957,
    "c": 0.15377,
    "h": 268.2
  },
  "luminance": 0.06406
}

Semantic roles & 50–950 ramp

primary
#283F9C
secondary
#BEAC62
accent
#C345E2
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #283F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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