#2831A3#2831A3

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

Color values

HEX#2831A3
RGBrgb(40, 49, 163)
HSLhsl(236, 61%, 40%)
HSVhsv(236, 75%, 64%)
CMYKcmyk(75.5%, 69.9%, 0%, 36.1%)
CIE-LABlab(27.55, 36.60, -62.20)
CIE-LCHlch(27.55, 72.17, 300.48°)
OKLaboklab(39.05% 0.004 -0.18)
OKLCHoklch(39.05% 0.18 271.3)
XYZxyz(8.5820, 5.2912, 35.2122)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2831A3 #A39A28
analogous
#286EA3 #2831A3 #5D28A3
triadic
#2831A3 #A32831 #31A328
tetradic
#2831A3 #A3286E #A39A28 #28A35D
square
#2831A3 #A3286E #A39A28 #28A35D
split-complementary
#2831A3 #A35D28 #6EA328
monochromatic
#101341 #1C2272 #2831A3 #3A45CF #6B73DB

Accessibility & contrast

On white

10.20
#2831A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2831A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2831A3
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2831A3#FFFFFF#000000##FFFFFF
##2831A31.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A6
Deuteranopia (green-blind)
#003BA1
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2831a3;
/* rgb */ color: rgb(40, 49, 163);
/* oklch */ color: oklch(39.0% 0.180 271.3);
Tailwind
colors: {
  custom: {
    50: '#7669bf',
    500: '#2831a3',
    950: '#000000',
  },
}
SCSS
$custom: #2831a3;
$custom-light: #7669bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2831a3",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 235.61,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39046,
    "c": 0.18001,
    "h": 271.3
  },
  "luminance": 0.05292
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2831A3

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

Preview Lab → · Contrast checker → · Palette generator →

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