#283A9B#283A9B

#283A9B is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.159 H 269.6°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#283A9B
RGBrgb(40, 58, 155)
HSLhsl(231, 59%, 38%)
HSVhsv(231, 74%, 61%)
CMYKcmyk(74.2%, 62.6%, 0%, 39.2%)
CIE-LABlab(29.01, 27.83, -54.94)
CIE-LCHlch(29.01, 61.59, 296.87°)
OKLaboklab(39.89% -0.0012 -0.1587)
OKLCHoklch(39.89% 0.159 269.6)
XYZxyz(8.3025, 5.8429, 31.6942)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283A9B #9B8928
analogous
#28739B #283A9B #50289B
triadic
#283A9B #9B283A #3A9B28
tetradic
#283A9B #9B2873 #9B8928 #289B50
square
#283A9B #9B2873 #9B8928 #289B50
split-complementary
#283A9B #9B5028 #739B28
monochromatic
#0F163A #1B286A #283A9B #354DCB #6678D7

Accessibility & contrast

On white

9.68
#283A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#283A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283A9B
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283A9B#FFFFFF#000000##FFFFFF
##283A9B1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #283a9b;
/* rgb */ color: rgb(40, 58, 155);
/* oklch */ color: oklch(39.9% 0.159 269.6);
Tailwind
colors: {
  custom: {
    50: '#7370b9',
    500: '#283a9b',
    950: '#000000',
  },
}
SCSS
$custom: #283a9b;
$custom-light: #7370b9;
$custom-dark: #000000;
JSON
{
  "hex": "#283a9b",
  "rgb": {
    "r": 40,
    "g": 58,
    "b": 155
  },
  "hsl": {
    "h": 230.609,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.3989,
    "c": 0.15868,
    "h": 269.6
  },
  "luminance": 0.05844
}

Semantic roles & 50–950 ramp

primary
#283A9B
secondary
#BDAF61
accent
#CA46E2
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #283A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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