#2831AD#2831AD

#2831AD is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.193 H 270.8°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#2831AD
RGBrgb(40, 49, 173)
HSLhsl(236, 62%, 42%)
HSVhsv(236, 77%, 68%)
CMYKcmyk(76.9%, 71.7%, 0%, 32.2%)
CIE-LABlab(28.55, 40.13, -66.57)
CIE-LCHlch(28.55, 77.74, 301.08°)
OKLaboklab(40.07% 0.0027 -0.1927)
OKLCHoklch(40.07% 0.193 270.8)
XYZxyz(9.5136, 5.6638, 40.1189)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2831AD #ADA428
analogous
#2874AD #2831AD #6228AD
triadic
#2831AD #AD2831 #31AD28
tetradic
#2831AD #AD2874 #ADA428 #28AD62
square
#2831AD #AD2874 #ADA428 #28AD62
split-complementary
#2831AD #AD6228 #74AD28
monochromatic
#11154A #1D237B #2831AD #3F49D3 #7179DE

Accessibility & contrast

On white

9.85
#2831AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##2831AD#FFFFFF#000000##FFFFFF
##2831AD1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB1
Deuteranopia (green-blind)
#003DAB
Tritanopia (blue-blind)
#00546B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2831ad;
/* rgb */ color: rgb(40, 49, 173);
/* oklch */ color: oklch(40.1% 0.193 270.8);
Tailwind
colors: {
  custom: {
    50: '#786ac7',
    500: '#2831ad',
    950: '#000000',
  },
}
SCSS
$custom: #2831ad;
$custom-light: #786ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#2831ad",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 235.94,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40067,
    "c": 0.19276,
    "h": 270.8
  },
  "luminance": 0.05665
}

Semantic roles & 50–950 ramp

primary
#2831AD
secondary
#C5BF6C
accent
#DA42E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2831AD

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

Preview Lab → · Contrast checker → · Palette generator →

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