#283C7E#283C7E

#283C7E is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.9% C 0.114 H 267.9°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#283C7E
RGBrgb(40, 60, 126)
HSLhsl(226, 52%, 33%)
HSVhsv(226, 68%, 49%)
CMYKcmyk(68.3%, 52.4%, 0%, 50.6%)
CIE-LABlab(27.27, 15.38, -39.86)
CIE-LCHlch(27.27, 42.72, 291.10°)
OKLaboklab(37.86% -0.0042 -0.1143)
OKLCHoklch(37.86% 0.114 267.9)
XYZxyz(6.2555, 5.1886, 20.4065)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283C7E #7E6A28
analogous
#28677E #283C7E #3F287E
triadic
#283C7E #7E283C #3C7E28
tetradic
#283C7E #7E2867 #7E6A28 #287E3F
square
#283C7E #7E2867 #7E6A28 #287E3F
split-complementary
#283C7E #7E3F28 #677E28
monochromatic
#0B1021 #192650 #283C7E #3752AC #5771CA

Accessibility & contrast

On white

10.31
#283C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#283C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283C7E
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283C7E#FFFFFF#000000##FFFFFF
##283C7E1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164580
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#004B57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #283c7e;
/* rgb */ color: rgb(40, 60, 126);
/* oklch */ color: oklch(37.9% 0.114 267.9);
Tailwind
colors: {
  custom: {
    50: '#6c71a4',
    500: '#283c7e',
    950: '#000000',
  },
}
SCSS
$custom: #283c7e;
$custom-light: #6c71a4;
$custom-dark: #000000;
JSON
{
  "hex": "#283c7e",
  "rgb": {
    "r": 40,
    "g": 60,
    "b": 126
  },
  "hsl": {
    "h": 226.047,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37859,
    "c": 0.1144,
    "h": 267.9
  },
  "luminance": 0.05189
}

Semantic roles & 50–950 ramp

primary
#283C7E
secondary
#AF9953
accent
#BA4DDB
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #283C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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