#283A7F#283A7F

#283A7F is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.5% C 0.119 H 269.0°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#283A7F
RGBrgb(40, 58, 127)
HSLhsl(228, 52%, 33%)
HSVhsv(228, 69%, 50%)
CMYKcmyk(68.5%, 54.3%, 0%, 50.2%)
CIE-LABlab(26.76, 17.15, -41.30)
CIE-LCHlch(26.76, 44.72, 292.55°)
OKLaboklab(37.5% -0.0021 -0.1186)
OKLCHoklch(37.5% 0.119 269)
XYZxyz(6.2176, 5.0090, 20.7137)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283A7F #7F6D28
analogous
#28667F #283A7F #41287F
triadic
#283A7F #7F283A #3A7F28
tetradic
#283A7F #7F2866 #7F6D28 #287F41
square
#283A7F #7F2866 #7F6D28 #287F41
split-complementary
#283A7F #7F4128 #667F28
monochromatic
#0B0F22 #192550 #283A7F #374FAE #576FCA

Accessibility & contrast

On white

10.49
#283A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#283A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283A7F
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283A7F#FFFFFF#000000##FFFFFF
##283A7F1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4381
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #283a7f;
/* rgb */ color: rgb(40, 58, 127);
/* oklch */ color: oklch(37.5% 0.119 269.0);
Tailwind
colors: {
  custom: {
    50: '#6d6fa5',
    500: '#283a7f',
    950: '#000000',
  },
}
SCSS
$custom: #283a7f;
$custom-light: #6d6fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#283a7f",
  "rgb": {
    "r": 40,
    "g": 58,
    "b": 127
  },
  "hsl": {
    "h": 227.586,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.375,
    "c": 0.11862,
    "h": 269
  },
  "luminance": 0.0501
}

Semantic roles & 50–950 ramp

primary
#283A7F
secondary
#AF9C54
accent
#BE4CDC
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #283A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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