#2B31C4#2B31C4

#2B31C4 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.6% C 0.220 H 270.6°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#2B31C4
RGBrgb(43, 49, 196)
HSLhsl(238, 64%, 47%)
HSVhsv(238, 78%, 77%)
CMYKcmyk(78.1%, 75%, 0%, 23.1%)
CIE-LABlab(31.10, 48.19, -75.99)
CIE-LCHlch(31.10, 89.98, 302.38°)
OKLaboklab(42.64% 0.0025 -0.2201)
OKLCHoklch(42.64% 0.22 270.6)
XYZxyz(12.0550, 6.6944, 52.8707)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B31C4 #C4BE2B
analogous
#2B7EC4 #2B31C4 #722BC4
triadic
#2B31C4 #C42B31 #31C42B
tetradic
#2B31C4 #C42B7E #C4BE2B #2BC472
square
#2B31C4 #C42B7E #C4BE2B #2BC472
split-complementary
#2B31C4 #C4722B #7EC42B
monochromatic
#151860 #202492 #2B31C4 #5358D9 #8589E4

Accessibility & contrast

On white

8.98
#2B31C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2B31C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B31C4
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B31C4#FFFFFF#000000##FFFFFF
##2B31C41.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C8
Deuteranopia (green-blind)
#0041C1
Tritanopia (blue-blind)
#005C78
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2b31c4;
/* rgb */ color: rgb(43, 49, 196);
/* oklch */ color: oklch(42.6% 0.220 270.6);
Tailwind
colors: {
  custom: {
    50: '#7f6bd7',
    500: '#2b31c4',
    950: '#000000',
  },
}
SCSS
$custom: #2b31c4;
$custom-light: #7f6bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b31c4",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 237.647,
    "s": 64.017,
    "l": 46.863
  },
  "oklch": {
    "l": 0.42642,
    "c": 0.22008,
    "h": 270.6
  },
  "luminance": 0.06696
}

Semantic roles & 50–950 ramp

primary
#2B31C4
secondary
#CECA7D
accent
#E141E7
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2B31C4

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

Preview Lab → · Contrast checker → · Palette generator →

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