#2B31BF#2B31BF

#2B31BF is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.1% C 0.214 H 270.9°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#2B31BF
RGBrgb(43, 49, 191)
HSLhsl(238, 63%, 46%)
HSVhsv(238, 77%, 75%)
CMYKcmyk(77.5%, 74.3%, 0%, 25.1%)
CIE-LABlab(30.57, 46.53, -73.93)
CIE-LCHlch(30.57, 87.36, 302.19°)
OKLaboklab(42.11% 0.0033 -0.2141)
OKLCHoklch(42.11% 0.214 270.9)
XYZxyz(11.4954, 6.4705, 49.9232)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B31BF #BFB92B
analogous
#2B7BBF #2B31BF #6F2BBF
triadic
#2B31BF #BF2B31 #31BF2B
tetradic
#2B31BF #BF2B7B #BFB92B #2BBF6F
square
#2B31BF #BF2B7B #BFB92B #2BBF6F
split-complementary
#2B31BF #BF6F2B #7BBF2B
monochromatic
#15175B #20248D #2B31BF #5055D8 #8286E3

Accessibility & contrast

On white

9.15
#2B31BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2B31BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B31BF
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B31BF#FFFFFF#000000##FFFFFF
##2B31BF1.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC3
Deuteranopia (green-blind)
#0041BC
Tritanopia (blue-blind)
#005B76
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2b31bf;
/* rgb */ color: rgb(43, 49, 191);
/* oklch */ color: oklch(42.1% 0.214 270.9);
Tailwind
colors: {
  custom: {
    50: '#7e6bd4',
    500: '#2b31bf',
    950: '#000000',
  },
}
SCSS
$custom: #2b31bf;
$custom-light: #7e6bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b31bf",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 237.568,
    "s": 63.248,
    "l": 45.882
  },
  "oklch": {
    "l": 0.42109,
    "c": 0.2141,
    "h": 270.9
  },
  "luminance": 0.06472
}

Semantic roles & 50–950 ramp

primary
#2B31BF
secondary
#CCC87A
accent
#E042E6
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #2B31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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