#2831A0#2831A0

#2831A0 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.176 H 271.4°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#2831A0
RGBrgb(40, 49, 160)
HSLhsl(236, 60%, 39%)
HSVhsv(236, 75%, 63%)
CMYKcmyk(75%, 69.4%, 0%, 37.3%)
CIE-LABlab(27.26, 35.53, -60.86)
CIE-LCHlch(27.26, 70.47, 300.28°)
OKLaboklab(38.75% 0.0043 -0.1761)
OKLCHoklch(38.75% 0.176 271.4)
XYZxyz(8.3164, 5.1849, 33.8134)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2831A0 #A09728
analogous
#286DA0 #2831A0 #5B28A0
triadic
#2831A0 #A02831 #31A028
tetradic
#2831A0 #A0286D #A09728 #28A05B
square
#2831A0 #A0286D #A09728 #28A05B
split-complementary
#2831A0 #A05B28 #6DA028
monochromatic
#10133E #1C226F #2831A0 #3843CD #6971D9

Accessibility & contrast

On white

10.31
#2831A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2831A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2831A0
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2831A0#FFFFFF#000000##FFFFFF
##2831A01.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#003B9E
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2831a0;
/* rgb */ color: rgb(40, 49, 160);
/* oklch */ color: oklch(38.7% 0.176 271.4);
Tailwind
colors: {
  custom: {
    50: '#7569bd',
    500: '#2831a0',
    950: '#000000',
  },
}
SCSS
$custom: #2831a0;
$custom-light: #7569bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2831a0",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 160
  },
  "hsl": {
    "h": 235.5,
    "s": 60,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38745,
    "c": 0.17612,
    "h": 271.4
  },
  "luminance": 0.05186
}

Semantic roles & 50–950 ramp

primary
#2831A0
secondary
#C0B964
accent
#D745E3
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2831A0

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

Preview Lab → · Contrast checker → · Palette generator →

#2831A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva