#283A9A#283A9A

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

Color values

HEX#283A9A
RGBrgb(40, 58, 154)
HSLhsl(231, 59%, 38%)
HSVhsv(231, 74%, 60%)
CMYKcmyk(74%, 62.3%, 0%, 39.6%)
CIE-LABlab(28.93, 27.45, -54.47)
CIE-LCHlch(28.93, 61.00, 296.75°)
OKLaboklab(39.8% -0.0012 -0.1573)
OKLCHoklch(39.8% 0.157 269.6)
XYZxyz(8.2189, 5.8095, 31.2538)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283A9A #9A8828
analogous
#28739A #283A9A #4F289A
triadic
#283A9A #9A283A #3A9A28
tetradic
#283A9A #9A2873 #9A8828 #289A4F
square
#283A9A #9A2873 #9A8828 #289A4F
split-complementary
#283A9A #9A4F28 #739A28
monochromatic
#0F1539 #1B2869 #283A9A #354CCA #6577D7

Accessibility & contrast

On white

9.71
#283A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#283A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283A9A
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283A9A#FFFFFF#000000##FFFFFF
##283A9A1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#003F98
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #283a9a;
/* rgb */ color: rgb(40, 58, 154);
/* oklch */ color: oklch(39.8% 0.157 269.6);
Tailwind
colors: {
  custom: {
    50: '#7370b9',
    500: '#283a9a',
    950: '#000000',
  },
}
SCSS
$custom: #283a9a;
$custom-light: #7370b9;
$custom-dark: #000000;
JSON
{
  "hex": "#283a9a",
  "rgb": {
    "r": 40,
    "g": 58,
    "b": 154
  },
  "hsl": {
    "h": 230.526,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.398,
    "c": 0.1573,
    "h": 269.6
  },
  "luminance": 0.0581
}

Semantic roles & 50–950 ramp

primary
#283A9A
secondary
#BDAE61
accent
#C946E2
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #283A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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