#2B31C0#2B31C0

#2B31C0 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.2% C 0.215 H 270.8°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#2B31C0
RGBrgb(43, 49, 192)
HSLhsl(238, 63%, 46%)
HSVhsv(238, 78%, 75%)
CMYKcmyk(77.6%, 74.5%, 0%, 24.7%)
CIE-LABlab(30.68, 46.87, -74.34)
CIE-LCHlch(30.68, 87.88, 302.23°)
OKLaboklab(42.22% 0.0031 -0.2153)
OKLCHoklch(42.22% 0.215 270.8)
XYZxyz(11.6058, 6.5147, 50.5048)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B31C0 #C0BA2B
analogous
#2B7BC0 #2B31C0 #6F2BC0
triadic
#2B31C0 #C02B31 #31C02B
tetradic
#2B31C0 #C02B7B #C0BA2B #2BC06F
square
#2B31C0 #C02B7B #C0BA2B #2BC06F
split-complementary
#2B31C0 #C06F2B #7BC02B
monochromatic
#15175C #20248E #2B31C0 #5056D8 #8286E3

Accessibility & contrast

On white

9.12
#2B31C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2B31C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B31C0
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B31C0#FFFFFF#000000##FFFFFF
##2B31C01.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C4
Deuteranopia (green-blind)
#0041BD
Tritanopia (blue-blind)
#005B76
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2b31c0;
/* rgb */ color: rgb(43, 49, 192);
/* oklch */ color: oklch(42.2% 0.215 270.8);
Tailwind
colors: {
  custom: {
    50: '#7e6bd4',
    500: '#2b31c0',
    950: '#000000',
  },
}
SCSS
$custom: #2b31c0;
$custom-light: #7e6bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b31c0",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 237.584,
    "s": 63.404,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42215,
    "c": 0.2153,
    "h": 270.8
  },
  "luminance": 0.06516
}

Semantic roles & 50–950 ramp

primary
#2B31C0
secondary
#CCC97B
accent
#E041E6
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #2B31C0

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

Preview Lab → · Contrast checker → · Palette generator →

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