#2B31AC#2B31AC

#2B31AC is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.191 H 271.8°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#2B31AC
RGBrgb(43, 49, 172)
HSLhsl(237, 60%, 42%)
HSVhsv(237, 75%, 67%)
CMYKcmyk(75%, 71.5%, 0%, 32.5%)
CIE-LABlab(28.61, 40.07, -65.87)
CIE-LCHlch(28.61, 77.09, 301.31°)
OKLaboklab(40.13% 0.0061 -0.1906)
OKLCHoklch(40.13% 0.191 271.8)
XYZxyz(9.5385, 5.6878, 39.6169)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B31AC #ACA62B
analogous
#2B72AC #2B31AC #652BAC
triadic
#2B31AC #AC2B31 #31AC2B
tetradic
#2B31AC #AC2B72 #ACA62B #2BAC65
square
#2B31AC #AC2B72 #ACA62B #2BAC65
split-complementary
#2B31AC #AC652B #72AC2B
monochromatic
#13154A #1F237B #2B31AC #444AD0 #757ADC

Accessibility & contrast

On white

9.82
#2B31AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2B31AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B31AC
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B31AC#FFFFFF#000000##FFFFFF
##2B31AC1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#003DAA
Tritanopia (blue-blind)
#00546B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2b31ac;
/* rgb */ color: rgb(43, 49, 172);
/* oklch */ color: oklch(40.1% 0.191 271.8);
Tailwind
colors: {
  custom: {
    50: '#796ac6',
    500: '#2b31ac',
    950: '#000000',
  },
}
SCSS
$custom: #2b31ac;
$custom-light: #796ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b31ac",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 237.209,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40125,
    "c": 0.19071,
    "h": 271.8
  },
  "luminance": 0.05689
}

Semantic roles & 50–950 ramp

primary
#2B31AC
secondary
#C4C06F
accent
#DC45E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2B31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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