#283F7C#283F7C

#283F7C is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.4% C 0.107 H 266.0°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#283F7C
RGBrgb(40, 63, 124)
HSLhsl(224, 51%, 32%)
HSVhsv(224, 68%, 49%)
CMYKcmyk(67.7%, 49.2%, 0%, 51.4%)
CIE-LABlab(28.01, 12.54, -37.41)
CIE-LCHlch(28.01, 39.45, 288.54°)
OKLaboklab(38.38% -0.0075 -0.1071)
OKLCHoklch(38.38% 0.107 266)
XYZxyz(6.2894, 5.4608, 19.7875)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F7C #7C6528
analogous
#28697C #283F7C #3B287C
triadic
#283F7C #7C283F #3F7C28
tetradic
#283F7C #7C2869 #7C6528 #287C3B
square
#283F7C #7C2869 #7C6528 #287C3B
split-complementary
#283F7C #7C3B28 #697C28
monochromatic
#0A101F #19274E #283F7C #3757AA #5675C8

Accessibility & contrast

On white

10.04
#283F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#283F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283F7C
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F7C#FFFFFF#000000##FFFFFF
##283F7C1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20467E
Deuteranopia (green-blind)
#0F3E7B
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #283f7c;
/* rgb */ color: rgb(40, 63, 124);
/* oklch */ color: oklch(38.4% 0.107 266.0);
Tailwind
colors: {
  custom: {
    50: '#6c73a2',
    500: '#283f7c',
    950: '#000000',
  },
}
SCSS
$custom: #283f7c;
$custom-light: #6c73a2;
$custom-dark: #000000;
JSON
{
  "hex": "#283f7c",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 124
  },
  "hsl": {
    "h": 223.571,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38381,
    "c": 0.10732,
    "h": 266
  },
  "luminance": 0.05461
}

Semantic roles & 50–950 ramp

primary
#283F7C
secondary
#AD9552
accent
#B44DDB
background
#F6F6FA
surface
#ECECF3
border
#C7C7CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #283F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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