#283A8A#283A8A

#283A8A is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.4% C 0.135 H 269.4°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#283A8A
RGBrgb(40, 58, 138)
HSLhsl(229, 55%, 35%)
HSVhsv(229, 71%, 54%)
CMYKcmyk(71%, 58%, 0%, 45.9%)
CIE-LABlab(27.60, 21.37, -46.79)
CIE-LCHlch(27.60, 51.44, 294.55°)
OKLaboklab(38.4% -0.0014 -0.1347)
OKLCHoklch(38.4% 0.135 269.4)
XYZxyz(6.9740, 5.3115, 24.6975)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283A8A #8A7828
analogous
#286B8A #283A8A #47288A
triadic
#283A8A #8A283A #3A8A28
tetradic
#283A8A #8A286B #8A7828 #288A47
square
#283A8A #8A286B #8A7828 #288A47
split-complementary
#283A8A #8A4728 #6B8A28
monochromatic
#0C122B #1A265B #283A8A #364EB9 #5D72D0

Accessibility & contrast

On white

10.18
#283A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#283A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283A8A
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283A8A#FFFFFF#000000##FFFFFF
##283A8A1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #283a8a;
/* rgb */ color: rgb(40, 58, 138);
/* oklch */ color: oklch(38.4% 0.135 269.4);
Tailwind
colors: {
  custom: {
    50: '#6f6fad',
    500: '#283a8a',
    950: '#000000',
  },
}
SCSS
$custom: #283a8a;
$custom-light: #6f6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#283a8a",
  "rgb": {
    "r": 40,
    "g": 58,
    "b": 138
  },
  "hsl": {
    "h": 228.98,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38402,
    "c": 0.13476,
    "h": 269.4
  },
  "luminance": 0.05312
}

Semantic roles & 50–950 ramp

primary
#283A8A
secondary
#B5A459
accent
#C349DE
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #283A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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