#2831B3#2831B3

#2831B3 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.7% C 0.200 H 270.6°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#2831B3
RGBrgb(40, 49, 179)
HSLhsl(236, 63%, 43%)
HSVhsv(236, 78%, 70%)
CMYKcmyk(77.7%, 72.6%, 0%, 29.8%)
CIE-LABlab(29.16, 42.22, -69.15)
CIE-LCHlch(29.16, 81.02, 301.41°)
OKLaboklab(40.69% 0.0019 -0.2002)
OKLCHoklch(40.69% 0.2 270.6)
XYZxyz(10.1073, 5.9013, 43.2455)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2831B3 #B3AA28
analogous
#2876B3 #2831B3 #6428B3
triadic
#2831B3 #B32831 #31B328
tetradic
#2831B3 #B32876 #B3AA28 #28B364
square
#2831B3 #B32876 #B3AA28 #28B364
split-complementary
#2831B3 #B36428 #76B328
monochromatic
#12164F #1D2381 #2831B3 #434DD5 #757CE0

Accessibility & contrast

On white

9.63
#2831B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2831B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2831B3
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2831B3#FFFFFF#000000##FFFFFF
##2831B31.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#003EB1
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2831b3;
/* rgb */ color: rgb(40, 49, 179);
/* oklch */ color: oklch(40.7% 0.200 270.6);
Tailwind
colors: {
  custom: {
    50: '#7a6acb',
    500: '#2831b3',
    950: '#000000',
  },
}
SCSS
$custom: #2831b3;
$custom-light: #7a6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#2831b3",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 236.115,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4069,
    "c": 0.20024,
    "h": 270.6
  },
  "luminance": 0.05902
}

Semantic roles & 50–950 ramp

primary
#2831B3
secondary
#C8C26F
accent
#DC41E6
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2831B3

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

Preview Lab → · Contrast checker → · Palette generator →

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