#283174#283174

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

Color values

HEX#283174
RGBrgb(40, 49, 116)
HSLhsl(233, 49%, 31%)
HSVhsv(233, 66%, 45%)
CMYKcmyk(65.5%, 57.8%, 0%, 54.5%)
CIE-LABlab(23.37, 19.21, -39.83)
CIE-LCHlch(23.37, 44.22, 295.75°)
OKLaboklab(34.68% 0.0063 -0.1144)
OKLCHoklch(34.68% 0.115 273.1)
XYZxyz(5.1247, 3.9083, 17.0039)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283174 #746B28
analogous
#285774 #283174 #452874
triadic
#283174 #742831 #317428
tetradic
#283174 #742857 #746B28 #287445
square
#283174 #742857 #746B28 #287445
split-complementary
#283174 #744528 #577428
monochromatic
#090B19 #181E46 #283174 #3844A2 #5360C4

Accessibility & contrast

On white

11.79
#283174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #283174
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283174#FFFFFF#000000##FFFFFF
##2831741.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B76
Deuteranopia (green-blind)
#003473
Tritanopia (blue-blind)
#00414D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #283174;
/* rgb */ color: rgb(40, 49, 116);
/* oklch */ color: oklch(34.7% 0.115 273.1);
Tailwind
colors: {
  custom: {
    50: '#6b689d',
    500: '#283174',
    950: '#000000',
  },
}
SCSS
$custom: #283174;
$custom-light: #6b689d;
$custom-dark: #000000;
JSON
{
  "hex": "#283174",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 116
  },
  "hsl": {
    "h": 232.895,
    "s": 48.718,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34682,
    "c": 0.11456,
    "h": 273.1
  },
  "luminance": 0.03909
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #283174

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

Preview Lab → · Contrast checker → · Palette generator →

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