#283178#283178

#283178 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.121 H 273.0°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#283178
RGBrgb(40, 49, 120)
HSLhsl(233, 50%, 31%)
HSVhsv(233, 67%, 47%)
CMYKcmyk(66.7%, 59.2%, 0%, 52.9%)
CIE-LABlab(23.68, 20.72, -41.87)
CIE-LCHlch(23.68, 46.71, 296.34°)
OKLaboklab(35.02% 0.0064 -0.1204)
OKLCHoklch(35.02% 0.121 273)
XYZxyz(5.3624, 4.0033, 18.2558)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283178 #786F28
analogous
#285978 #283178 #472878
triadic
#283178 #782831 #317828
tetradic
#283178 #782859 #786F28 #287847
square
#283178 #782859 #786F28 #287847
split-complementary
#283178 #784728 #597828
monochromatic
#090C1C #191E4A #283178 #3744A6 #5461C6

Accessibility & contrast

On white

11.66
#283178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#283178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283178
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283178#FFFFFF#000000##FFFFFF
##2831781.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7A
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #283178;
/* rgb */ color: rgb(40, 49, 120);
/* oklch */ color: oklch(35.0% 0.121 273.0);
Tailwind
colors: {
  custom: {
    50: '#6c69a0',
    500: '#283178',
    950: '#000000',
  },
}
SCSS
$custom: #283178;
$custom-light: #6c69a0;
$custom-dark: #000000;
JSON
{
  "hex": "#283178",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 120
  },
  "hsl": {
    "h": 233.25,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35018,
    "c": 0.12055,
    "h": 273
  },
  "luminance": 0.04004
}

Semantic roles & 50–950 ramp

primary
#283178
secondary
#AAA052
accent
#CA4EDA
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #283178

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

Preview Lab → · Contrast checker → · Palette generator →

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