#283173#283173

#283173 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.6% C 0.113 H 273.1°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#283173
RGBrgb(40, 49, 115)
HSLhsl(233, 48%, 30%)
HSVhsv(233, 65%, 45%)
CMYKcmyk(65.2%, 57.4%, 0%, 54.9%)
CIE-LABlab(23.29, 18.83, -39.32)
CIE-LCHlch(23.29, 43.60, 295.60°)
OKLaboklab(34.6% 0.0062 -0.1129)
OKLCHoklch(34.6% 0.113 273.1)
XYZxyz(5.0669, 3.8851, 16.6992)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283173 #736A28
analogous
#285673 #283173 #442873
triadic
#283173 #732831 #317328
tetradic
#283173 #732856 #736A28 #287344
square
#283173 #732856 #736A28 #287344
split-complementary
#283173 #734428 #567328
monochromatic
#080A18 #181E46 #283173 #3844A0 #5260C3

Accessibility & contrast

On white

11.82
#283173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#283173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283173
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283173#FFFFFF#000000##FFFFFF
##2831731.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013B75
Deuteranopia (green-blind)
#003472
Tritanopia (blue-blind)
#00414D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #283173;
/* rgb */ color: rgb(40, 49, 115);
/* oklch */ color: oklch(34.6% 0.113 273.1);
Tailwind
colors: {
  custom: {
    50: '#6b689c',
    500: '#283173',
    950: '#000000',
  },
}
SCSS
$custom: #283173;
$custom-light: #6b689c;
$custom-dark: #000000;
JSON
{
  "hex": "#283173",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 115
  },
  "hsl": {
    "h": 232.8,
    "s": 48.387,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34599,
    "c": 0.11305,
    "h": 273.1
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#283173
secondary
#A59B52
accent
#C850D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #283173

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

Preview Lab → · Contrast checker → · Palette generator →

#283173 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva