#283A8B#283A8B

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

Color values

HEX#283A8B
RGBrgb(40, 58, 139)
HSLhsl(229, 55%, 35%)
HSVhsv(229, 71%, 55%)
CMYKcmyk(71.2%, 58.3%, 0%, 45.5%)
CIE-LABlab(27.68, 21.76, -47.28)
CIE-LCHlch(27.68, 52.05, 294.71°)
OKLaboklab(38.49% -0.0013 -0.1362)
OKLCHoklch(38.49% 0.136 269.4)
XYZxyz(7.0467, 5.3406, 25.0806)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283A8B #8B7928
analogous
#286B8B #283A8B #48288B
triadic
#283A8B #8B283A #3A8B28
tetradic
#283A8B #8B286B #8B7928 #288B48
square
#283A8B #8B286B #8B7928 #288B48
split-complementary
#283A8B #8B4828 #6B8B28
monochromatic
#0D122C #1A265B #283A8B #364EBB #5D72D0

Accessibility & contrast

On white

10.15
#283A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#283A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283A8B
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283A8B#FFFFFF#000000##FFFFFF
##283A8B1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #283a8b;
/* rgb */ color: rgb(40, 58, 139);
/* oklch */ color: oklch(38.5% 0.136 269.4);
Tailwind
colors: {
  custom: {
    50: '#6f6fae',
    500: '#283a8b',
    950: '#000000',
  },
}
SCSS
$custom: #283a8b;
$custom-light: #6f6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#283a8b",
  "rgb": {
    "r": 40,
    "g": 58,
    "b": 139
  },
  "hsl": {
    "h": 229.091,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38487,
    "c": 0.1362,
    "h": 269.4
  },
  "luminance": 0.05341
}

Semantic roles & 50–950 ramp

primary
#283A8B
secondary
#B6A559
accent
#C349DF
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #283A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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