#2831AE#2831AE

#2831AE is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.2% C 0.194 H 270.8°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2831AE
RGBrgb(40, 49, 174)
HSLhsl(236, 63%, 42%)
HSVhsv(236, 77%, 68%)
CMYKcmyk(77%, 71.8%, 0%, 31.8%)
CIE-LABlab(28.65, 40.48, -67.01)
CIE-LCHlch(28.65, 78.29, 301.14°)
OKLaboklab(40.17% 0.0026 -0.194)
OKLCHoklch(40.17% 0.194 270.8)
XYZxyz(9.6108, 5.7027, 40.6304)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2831AE #AEA528
analogous
#2874AE #2831AE #6228AE
triadic
#2831AE #AE2831 #31AE28
tetradic
#2831AE #AE2874 #AEA528 #28AE62
square
#2831AE #AE2874 #AEA528 #28AE62
split-complementary
#2831AE #AE6228 #74AE28
monochromatic
#11154A #1D237C #2831AE #404AD3 #7279DF

Accessibility & contrast

On white

9.81
#2831AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2831AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2831AE
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2831AE#FFFFFF#000000##FFFFFF
##2831AE1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#003DAC
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2831ae;
/* rgb */ color: rgb(40, 49, 174);
/* oklch */ color: oklch(40.2% 0.194 270.8);
Tailwind
colors: {
  custom: {
    50: '#796ac7',
    500: '#2831ae',
    950: '#000000',
  },
}
SCSS
$custom: #2831ae;
$custom-light: #796ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#2831ae",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 235.97,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4017,
    "c": 0.19401,
    "h": 270.8
  },
  "luminance": 0.05704
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2831AE

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

Preview Lab → · Contrast checker → · Palette generator →

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