#283A7A#283A7A

#283A7A is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.1% C 0.111 H 268.7°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#283A7A
RGBrgb(40, 58, 122)
HSLhsl(227, 51%, 32%)
HSVhsv(227, 67%, 48%)
CMYKcmyk(67.2%, 52.5%, 0%, 52.2%)
CIE-LABlab(26.40, 15.23, -38.75)
CIE-LCHlch(26.40, 41.63, 291.46°)
OKLaboklab(37.11% -0.0026 -0.1111)
OKLCHoklch(37.11% 0.111 268.7)
XYZxyz(5.8998, 4.8818, 19.0400)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283A7A #7A6828
analogous
#28637A #283A7A #3F287A
triadic
#283A7A #7A283A #3A7A28
tetradic
#283A7A #7A2863 #7A6828 #287A3F
square
#283A7A #7A2863 #7A6828 #287A3F
split-complementary
#283A7A #7A3F28 #637A28
monochromatic
#0A0E1E #19244C #283A7A #3750A8 #556EC7

Accessibility & contrast

On white

10.63
#283A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#283A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283A7A
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283A7A#FFFFFF#000000##FFFFFF
##283A7A1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16427C
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #283a7a;
/* rgb */ color: rgb(40, 58, 122);
/* oklch */ color: oklch(37.1% 0.111 268.7);
Tailwind
colors: {
  custom: {
    50: '#6c6fa1',
    500: '#283a7a',
    950: '#000000',
  },
}
SCSS
$custom: #283a7a;
$custom-light: #6c6fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#283a7a",
  "rgb": {
    "r": 40,
    "g": 58,
    "b": 122
  },
  "hsl": {
    "h": 226.829,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37108,
    "c": 0.11111,
    "h": 268.7
  },
  "luminance": 0.04882
}

Semantic roles & 50–950 ramp

primary
#283A7A
secondary
#AC9852
accent
#BB4EDA
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070F
muted
#7A7A7E

Preview Lab

Preview with #283A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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