#2831A2#2831A2

#2831A2 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.179 H 271.3°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#2831A2
RGBrgb(40, 49, 162)
HSLhsl(236, 60%, 40%)
HSVhsv(236, 75%, 64%)
CMYKcmyk(75.3%, 69.8%, 0%, 36.5%)
CIE-LABlab(27.45, 36.25, -61.75)
CIE-LCHlch(27.45, 71.60, 300.41°)
OKLaboklab(38.95% 0.0041 -0.1787)
OKLCHoklch(38.95% 0.179 271.3)
XYZxyz(8.4928, 5.2555, 34.7422)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2831A2 #A29928
analogous
#286EA2 #2831A2 #5C28A2
triadic
#2831A2 #A22831 #31A228
tetradic
#2831A2 #A2286E #A29928 #28A25C
square
#2831A2 #A2286E #A29928 #28A25C
split-complementary
#2831A2 #A25C28 #6EA228
monochromatic
#101340 #1C2271 #2831A2 #3944CE #6A72DA

Accessibility & contrast

On white

10.24
#2831A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2831A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2831A2#FFFFFF#000000##FFFFFF
##2831A21.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#005065
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2831a2;
/* rgb */ color: rgb(40, 49, 162);
/* oklch */ color: oklch(38.9% 0.179 271.3);
Tailwind
colors: {
  custom: {
    50: '#7669bf',
    500: '#2831a2',
    950: '#000000',
  },
}
SCSS
$custom: #2831a2;
$custom-light: #7669bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2831a2",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 235.574,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38945,
    "c": 0.17872,
    "h": 271.3
  },
  "luminance": 0.05256
}

Semantic roles & 50–950 ramp

primary
#2831A2
secondary
#C1BA65
accent
#D844E4
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2831A2

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

Preview Lab → · Contrast checker → · Palette generator →

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