#2831AC#2831AC

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

Color values

HEX#2831AC
RGBrgb(40, 49, 172)
HSLhsl(236, 62%, 42%)
HSVhsv(236, 77%, 67%)
CMYKcmyk(76.7%, 71.5%, 0%, 32.5%)
CIE-LABlab(28.45, 39.78, -66.14)
CIE-LCHlch(28.45, 77.19, 301.03°)
OKLaboklab(39.96% 0.0029 -0.1915)
OKLCHoklch(39.96% 0.192 270.9)
XYZxyz(9.4172, 5.6253, 39.6112)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2831AC #ACA328
analogous
#2873AC #2831AC #6128AC
triadic
#2831AC #AC2831 #31AC28
tetradic
#2831AC #AC2873 #ACA328 #28AC61
square
#2831AC #AC2873 #ACA328 #28AC61
split-complementary
#2831AC #AC6128 #73AC28
monochromatic
#111549 #1C237A #2831AC #3F49D2 #7178DE

Accessibility & contrast

On white

9.88
#2831AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2831AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2831AC#FFFFFF#000000##FFFFFF
##2831AC1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#003DAA
Tritanopia (blue-blind)
#00546B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2831ac;
/* rgb */ color: rgb(40, 49, 172);
/* oklch */ color: oklch(40.0% 0.192 270.9);
Tailwind
colors: {
  custom: {
    50: '#786ac6',
    500: '#2831ac',
    950: '#000000',
  },
}
SCSS
$custom: #2831ac;
$custom-light: #786ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#2831ac",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 235.909,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39963,
    "c": 0.1915,
    "h": 270.9
  },
  "luminance": 0.05626
}

Semantic roles & 50–950 ramp

primary
#2831AC
secondary
#C5BF6B
accent
#DA42E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2831AC

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

Preview Lab → · Contrast checker → · Palette generator →

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