#2831B1#2831B1

#2831B1 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.198 H 270.6°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#2831B1
RGBrgb(40, 49, 177)
HSLhsl(236, 63%, 43%)
HSVhsv(236, 77%, 69%)
CMYKcmyk(77.4%, 72.3%, 0%, 30.6%)
CIE-LABlab(28.96, 41.53, -68.29)
CIE-LCHlch(28.96, 79.93, 301.30°)
OKLaboklab(40.48% 0.0022 -0.1977)
OKLCHoklch(40.48% 0.198 270.6)
XYZxyz(9.9065, 5.8210, 42.1879)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2831B1 #B1A828
analogous
#2876B1 #2831B1 #6328B1
triadic
#2831B1 #B12831 #31B128
tetradic
#2831B1 #B12876 #B1A828 #28B163
square
#2831B1 #B12876 #B1A828 #28B163
split-complementary
#2831B1 #B16328 #76B128
monochromatic
#11154D #1D237F #2831B1 #424CD4 #747BE0

Accessibility & contrast

On white

9.70
#2831B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2831B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2831B1
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2831B1#FFFFFF#000000##FFFFFF
##2831B11.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#003EAF
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2831b1;
/* rgb */ color: rgb(40, 49, 177);
/* oklch */ color: oklch(40.5% 0.198 270.6);
Tailwind
colors: {
  custom: {
    50: '#796aca',
    500: '#2831b1',
    950: '#000000',
  },
}
SCSS
$custom: #2831b1;
$custom-light: #796aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2831b1",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 236.058,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40482,
    "c": 0.19776,
    "h": 270.6
  },
  "luminance": 0.05822
}

Semantic roles & 50–950 ramp

primary
#2831B1
secondary
#C7C16E
accent
#DB42E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2831B1

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

Preview Lab → · Contrast checker → · Palette generator →

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