#2831AB#2831AB

#2831AB is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.190 H 270.9°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#2831AB
RGBrgb(40, 49, 171)
HSLhsl(236, 62%, 41%)
HSVhsv(236, 77%, 67%)
CMYKcmyk(76.6%, 71.3%, 0%, 32.9%)
CIE-LABlab(28.35, 39.43, -65.71)
CIE-LCHlch(28.35, 76.63, 300.97°)
OKLaboklab(39.86% 0.003 -0.1902)
OKLCHoklch(39.86% 0.19 270.9)
XYZxyz(9.3216, 5.5870, 39.1073)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2831AB #ABA228
analogous
#2873AB #2831AB #6128AB
triadic
#2831AB #AB2831 #31AB28
tetradic
#2831AB #AB2873 #ABA228 #28AB61
square
#2831AB #AB2873 #ABA228 #28AB61
split-complementary
#2831AB #AB6128 #73AB28
monochromatic
#111548 #1C2379 #2831AB #3E48D2 #7077DE

Accessibility & contrast

On white

9.92
#2831AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2831AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2831AB
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2831AB#FFFFFF#000000##FFFFFF
##2831AB1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#003CA9
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2831ab;
/* rgb */ color: rgb(40, 49, 171);
/* oklch */ color: oklch(39.9% 0.190 270.9);
Tailwind
colors: {
  custom: {
    50: '#786ac5',
    500: '#2831ab',
    950: '#000000',
  },
}
SCSS
$custom: #2831ab;
$custom-light: #786ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#2831ab",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 235.878,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.3986,
    "c": 0.19023,
    "h": 270.9
  },
  "luminance": 0.05588
}

Semantic roles & 50–950 ramp

primary
#2831AB
secondary
#C4BE6A
accent
#DA43E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2831AB

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

Preview Lab → · Contrast checker → · Palette generator →

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