#2B31A5#2B31A5

#2B31A5 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.182 H 272.2°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#2B31A5
RGBrgb(43, 49, 165)
HSLhsl(237, 59%, 41%)
HSVhsv(237, 74%, 65%)
CMYKcmyk(73.9%, 70.3%, 0%, 35.3%)
CIE-LABlab(27.92, 37.62, -62.80)
CIE-LCHlch(27.92, 73.20, 300.93°)
OKLaboklab(39.42% 0.0071 -0.1816)
OKLCHoklch(39.42% 0.182 272.2)
XYZxyz(8.8838, 5.4259, 36.1691)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B31A5 #A59F2B
analogous
#2B6EA5 #2B31A5 #622BA5
triadic
#2B31A5 #A52B31 #31A52B
tetradic
#2B31A5 #A52B6E #A59F2B #2BA562
square
#2B31A5 #A52B6E #A59F2B #2BA562
split-complementary
#2B31A5 #A5622B #6EA52B
monochromatic
#121444 #1E2374 #2B31A5 #4047CD #7176DA

Accessibility & contrast

On white

10.07
#2B31A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2B31A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B31A5
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B31A5#FFFFFF#000000##FFFFFF
##2B31A51.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#003CA3
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2b31a5;
/* rgb */ color: rgb(43, 49, 165);
/* oklch */ color: oklch(39.4% 0.182 272.2);
Tailwind
colors: {
  custom: {
    50: '#786ac1',
    500: '#2b31a5',
    950: '#000000',
  },
}
SCSS
$custom: #2b31a5;
$custom-light: #786ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b31a5",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 237.049,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39416,
    "c": 0.18179,
    "h": 272.2
  },
  "luminance": 0.05427
}

Semantic roles & 50–950 ramp

primary
#2B31A5
secondary
#C1BD6B
accent
#DA46E2
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B31A5

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

Preview Lab → · Contrast checker → · Palette generator →

#2B31A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva