#283A7D#283A7D

#283A7D is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.3% C 0.116 H 268.9°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#283A7D
RGBrgb(40, 58, 125)
HSLhsl(227, 52%, 32%)
HSVhsv(227, 68%, 49%)
CMYKcmyk(68%, 53.6%, 0%, 51%)
CIE-LABlab(26.61, 16.38, -40.28)
CIE-LCHlch(26.61, 43.49, 292.13°)
OKLaboklab(37.34% -0.0023 -0.1156)
OKLCHoklch(37.34% 0.116 268.9)
XYZxyz(6.0885, 4.9573, 20.0341)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283A7D #7D6B28
analogous
#28657D #283A7D #41287D
triadic
#283A7D #7D283A #3A7D28
tetradic
#283A7D #7D2865 #7D6B28 #287D41
square
#283A7D #7D2865 #7D6B28 #287D41
split-complementary
#283A7D #7D4128 #657D28
monochromatic
#0A0F20 #19244F #283A7D #3750AB #566FC9

Accessibility & contrast

On white

10.54
#283A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#283A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283A7D
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283A7D#FFFFFF#000000##FFFFFF
##283A7D1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11437F
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#004A55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #283a7d;
/* rgb */ color: rgb(40, 58, 125);
/* oklch */ color: oklch(37.3% 0.116 268.9);
Tailwind
colors: {
  custom: {
    50: '#6c6fa3',
    500: '#283a7d',
    950: '#000000',
  },
}
SCSS
$custom: #283a7d;
$custom-light: #6c6fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#283a7d",
  "rgb": {
    "r": 40,
    "g": 58,
    "b": 125
  },
  "hsl": {
    "h": 227.294,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37342,
    "c": 0.11562,
    "h": 268.9
  },
  "luminance": 0.04958
}

Semantic roles & 50–950 ramp

primary
#283A7D
secondary
#AE9B53
accent
#BD4DDB
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #283A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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