#2831A5#2831A5

#2831A5 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.2% C 0.183 H 271.2°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#2831A5
RGBrgb(40, 49, 165)
HSLhsl(236, 61%, 40%)
HSVhsv(236, 76%, 65%)
CMYKcmyk(75.8%, 70.3%, 0%, 35.3%)
CIE-LABlab(27.75, 37.31, -63.08)
CIE-LCHlch(27.75, 73.29, 300.61°)
OKLaboklab(39.25% 0.0038 -0.1825)
OKLCHoklch(39.25% 0.183 271.2)
XYZxyz(8.7626, 5.3634, 36.1634)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2831A5 #A59C28
analogous
#286FA5 #2831A5 #5D28A5
triadic
#2831A5 #A52831 #31A528
tetradic
#2831A5 #A5286F #A59C28 #28A55D
square
#2831A5 #A5286F #A59C28 #28A55D
split-complementary
#2831A5 #A55D28 #6FA528
monochromatic
#101442 #1C2274 #2831A5 #3B45CF #6C74DB

Accessibility & contrast

On white

10.13
#2831A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2831A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2831A5#FFFFFF#000000##FFFFFF
##2831A51.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2831a5;
/* rgb */ color: rgb(40, 49, 165);
/* oklch */ color: oklch(39.2% 0.183 271.2);
Tailwind
colors: {
  custom: {
    50: '#766ac1',
    500: '#2831a5',
    950: '#000000',
  },
}
SCSS
$custom: #2831a5;
$custom-light: #766ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#2831a5",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 235.68,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39248,
    "c": 0.18259,
    "h": 271.2
  },
  "luminance": 0.05364
}

Semantic roles & 50–950 ramp

primary
#2831A5
secondary
#C2BB67
accent
#D944E4
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2831A5

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

Preview Lab → · Contrast checker → · Palette generator →

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