#2831AA#2831AA

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

Color values

HEX#2831AA
RGBrgb(40, 49, 170)
HSLhsl(236, 62%, 41%)
HSVhsv(236, 76%, 67%)
CMYKcmyk(76.5%, 71.2%, 0%, 33.3%)
CIE-LABlab(28.24, 39.08, -65.27)
CIE-LCHlch(28.24, 76.08, 300.91°)
OKLaboklab(39.76% 0.0031 -0.1889)
OKLCHoklch(39.76% 0.189 270.9)
XYZxyz(9.2266, 5.5490, 38.6072)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2831AA #AAA128
analogous
#2872AA #2831AA #6028AA
triadic
#2831AA #AA2831 #31AA28
tetradic
#2831AA #AA2872 #AAA128 #28AA60
square
#2831AA #AA2872 #AAA128 #28AA60
split-complementary
#2831AA #AA6028 #72AA28
monochromatic
#111447 #1C2378 #2831AA #3E48D2 #6F77DD

Accessibility & contrast

On white

9.95
#2831AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2831AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2831AA#FFFFFF#000000##FFFFFF
##2831AA1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2831aa;
/* rgb */ color: rgb(40, 49, 170);
/* oklch */ color: oklch(39.8% 0.189 270.9);
Tailwind
colors: {
  custom: {
    50: '#786ac4',
    500: '#2831aa',
    950: '#000000',
  },
}
SCSS
$custom: #2831aa;
$custom-light: #786ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2831aa",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 235.846,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39758,
    "c": 0.18897,
    "h": 270.9
  },
  "luminance": 0.0555
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2831AA

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

Preview Lab → · Contrast checker → · Palette generator →

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