#2B31A6#2B31A6

#2B31A6 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.5% C 0.183 H 272.2°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#2B31A6
RGBrgb(43, 49, 166)
HSLhsl(237, 59%, 41%)
HSVhsv(237, 74%, 65%)
CMYKcmyk(74.1%, 70.5%, 0%, 34.9%)
CIE-LABlab(28.01, 37.97, -63.24)
CIE-LCHlch(28.01, 73.76, 300.98°)
OKLaboklab(39.52% 0.0069 -0.1829)
OKLCHoklch(39.52% 0.183 272.2)
XYZxyz(8.9752, 5.4625, 36.6504)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B31A6 #A6A02B
analogous
#2B6EA6 #2B31A6 #622BA6
triadic
#2B31A6 #A62B31 #31A62B
tetradic
#2B31A6 #A62B6E #A6A02B #2BA662
square
#2B31A6 #A62B6E #A6A02B #2BA662
split-complementary
#2B31A6 #A6622B #6EA62B
monochromatic
#121445 #1E2375 #2B31A6 #4147CE #7176DA

Accessibility & contrast

On white

10.04
#2B31A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B31A6
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B31A6#FFFFFF#000000##FFFFFF
##2B31A61.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2b31a6;
/* rgb */ color: rgb(43, 49, 166);
/* oklch */ color: oklch(39.5% 0.183 272.2);
Tailwind
colors: {
  custom: {
    50: '#786ac2',
    500: '#2b31a6',
    950: '#000000',
  },
}
SCSS
$custom: #2b31a6;
$custom-light: #786ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b31a6",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 237.073,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39516,
    "c": 0.18307,
    "h": 272.2
  },
  "luminance": 0.05463
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B31A6

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

Preview Lab → · Contrast checker → · Palette generator →

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