#2931B1#2931B1

#2931B1 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.198 H 270.9°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#2931B1
RGBrgb(41, 49, 177)
HSLhsl(236, 62%, 43%)
HSVhsv(236, 77%, 69%)
CMYKcmyk(76.8%, 72.3%, 0%, 30.6%)
CIE-LABlab(29.01, 41.61, -68.21)
CIE-LCHlch(29.01, 79.90, 301.39°)
OKLaboklab(40.53% 0.0033 -0.1975)
OKLCHoklch(40.53% 0.198 270.9)
XYZxyz(9.9459, 5.8413, 42.1898)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2931B1 #B1A929
analogous
#2975B1 #2931B1 #6529B1
triadic
#2931B1 #B12931 #31B129
tetradic
#2931B1 #B12975 #B1A929 #29B165
square
#2931B1 #B12975 #B1A929 #29B165
split-complementary
#2931B1 #B16529 #75B129
monochromatic
#12154E #1D237F #2931B1 #444CD4 #757CDF

Accessibility & contrast

On white

9.68
#2931B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2931B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2931B1
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2931B1#FFFFFF#000000##FFFFFF
##2931B11.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#003EAF
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2931b1;
/* rgb */ color: rgb(41, 49, 177);
/* oklch */ color: oklch(40.5% 0.198 270.9);
Tailwind
colors: {
  custom: {
    50: '#7a6aca',
    500: '#2931b1',
    950: '#000000',
  },
}
SCSS
$custom: #2931b1;
$custom-light: #7a6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2931b1",
  "rgb": {
    "r": 41,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 236.471,
    "s": 62.385,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40533,
    "c": 0.1975,
    "h": 270.9
  },
  "luminance": 0.05842
}

Semantic roles & 50–950 ramp

primary
#2931B1
secondary
#C7C16F
accent
#DC42E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2931B1

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

Preview Lab → · Contrast checker → · Palette generator →

#2931B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva