#283C8A#283C8A

#283C8A is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.8% C 0.132 H 268.6°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#283C8A
RGBrgb(40, 60, 138)
HSLhsl(228, 55%, 35%)
HSVhsv(228, 71%, 54%)
CMYKcmyk(71%, 56.5%, 0%, 45.9%)
CIE-LABlab(28.16, 20.00, -45.89)
CIE-LCHlch(28.16, 50.06, 293.55°)
OKLaboklab(38.82% -0.0031 -0.1321)
OKLCHoklch(38.82% 0.132 268.6)
XYZxyz(7.0768, 5.5171, 24.7318)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283C8A #8A7628
analogous
#286D8A #283C8A #45288A
triadic
#283C8A #8A283C #3C8A28
tetradic
#283C8A #8A286D #8A7628 #288A45
square
#283C8A #8A286D #8A7628 #288A45
split-complementary
#283C8A #8A4528 #6D8A28
monochromatic
#0C132B #1A275B #283C8A #3651B9 #5D74D0

Accessibility & contrast

On white

9.98
#283C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#283C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283C8A
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283C8A#FFFFFF#000000##FFFFFF
##283C8A1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #283c8a;
/* rgb */ color: rgb(40, 60, 138);
/* oklch */ color: oklch(38.8% 0.132 268.6);
Tailwind
colors: {
  custom: {
    50: '#6f71ad',
    500: '#283c8a',
    950: '#000000',
  },
}
SCSS
$custom: #283c8a;
$custom-light: #6f71ad;
$custom-dark: #000000;
JSON
{
  "hex": "#283c8a",
  "rgb": {
    "r": 40,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 227.755,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38819,
    "c": 0.13211,
    "h": 268.6
  },
  "luminance": 0.05518
}

Semantic roles & 50–950 ramp

primary
#283C8A
secondary
#B5A259
accent
#C049DE
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #283C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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