#283170#283170

#283170 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.4% C 0.108 H 273.2°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#283170
RGBrgb(40, 49, 112)
HSLhsl(233, 47%, 30%)
HSVhsv(233, 64%, 44%)
CMYKcmyk(64.3%, 56.3%, 0%, 56.1%)
CIE-LABlab(23.06, 17.70, -37.77)
CIE-LCHlch(23.06, 41.71, 295.11°)
OKLaboklab(34.35% 0.006 -0.1083)
OKLCHoklch(34.35% 0.109 273.2)
XYZxyz(4.8970, 3.8172, 15.8048)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283170 #706728
analogous
#285570 #283170 #432870
triadic
#283170 #702831 #317028
tetradic
#283170 #702855 #706728 #287043
square
#283170 #702855 #706728 #287043
split-complementary
#283170 #704328 #557028
monochromatic
#080A17 #181D43 #283170 #38459D #515FC1

Accessibility & contrast

On white

11.91
#283170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#283170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283170
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283170#FFFFFF#000000##FFFFFF
##2831701.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083A72
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#00404B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #283170;
/* rgb */ color: rgb(40, 49, 112);
/* oklch */ color: oklch(34.4% 0.108 273.2);
Tailwind
colors: {
  custom: {
    50: '#6a689a',
    500: '#283170',
    950: '#000000',
  },
}
SCSS
$custom: #283170;
$custom-light: #6a689a;
$custom-dark: #000000;
JSON
{
  "hex": "#283170",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 112
  },
  "hsl": {
    "h": 232.5,
    "s": 47.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34353,
    "c": 0.1085,
    "h": 273.2
  },
  "luminance": 0.03818
}

Semantic roles & 50–950 ramp

primary
#283170
secondary
#A29851
accent
#C651D7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #283170

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

Preview Lab → · Contrast checker → · Palette generator →

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