#2831A4#2831A4

#2831A4 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.181 H 271.2°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#2831A4
RGBrgb(40, 49, 164)
HSLhsl(236, 61%, 40%)
HSVhsv(236, 76%, 64%)
CMYKcmyk(75.6%, 70.1%, 0%, 35.7%)
CIE-LABlab(27.65, 36.96, -62.64)
CIE-LCHlch(27.65, 72.73, 300.54°)
OKLaboklab(39.15% 0.0039 -0.1813)
OKLCHoklch(39.15% 0.181 271.2)
XYZxyz(8.6720, 5.3272, 35.6860)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2831A4 #A49B28
analogous
#286FA4 #2831A4 #5D28A4
triadic
#2831A4 #A42831 #31A428
tetradic
#2831A4 #A4286F #A49B28 #28A45D
square
#2831A4 #A4286F #A49B28 #28A45D
split-complementary
#2831A4 #A45D28 #6FA428
monochromatic
#101442 #1C2273 #2831A4 #3A45CF #6B74DB

Accessibility & contrast

On white

10.17
#2831A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##2831A4#FFFFFF#000000##FFFFFF
##2831A41.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A7
Deuteranopia (green-blind)
#003BA2
Tritanopia (blue-blind)
#005166
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2831a4;
/* rgb */ color: rgb(40, 49, 164);
/* oklch */ color: oklch(39.1% 0.181 271.2);
Tailwind
colors: {
  custom: {
    50: '#766ac0',
    500: '#2831a4',
    950: '#000000',
  },
}
SCSS
$custom: #2831a4;
$custom-light: #766ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#2831a4",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 235.645,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.39147,
    "c": 0.1813,
    "h": 271.2
  },
  "luminance": 0.05328
}

Semantic roles & 50–950 ramp

primary
#2831A4
secondary
#C1BB66
accent
#D844E4
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2831A4

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

Preview Lab → · Contrast checker → · Palette generator →

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