#2931AB#2931AB

#2931AB is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.190 H 271.2°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#2931AB
RGBrgb(41, 49, 171)
HSLhsl(236, 61%, 42%)
HSVhsv(236, 76%, 67%)
CMYKcmyk(76%, 71.3%, 0%, 32.9%)
CIE-LABlab(28.40, 39.53, -65.62)
CIE-LCHlch(28.40, 76.60, 301.06°)
OKLaboklab(39.91% 0.0041 -0.1899)
OKLCHoklch(39.91% 0.19 271.2)
XYZxyz(9.3610, 5.6073, 39.1092)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2931AB #ABA329
analogous
#2972AB #2931AB #6229AB
triadic
#2931AB #AB2931 #31AB29
tetradic
#2931AB #AB2972 #ABA329 #29AB62
square
#2931AB #AB2972 #ABA329 #29AB62
split-complementary
#2931AB #AB6229 #72AB29
monochromatic
#111548 #1D237A #2931AB #4049D1 #7178DD

Accessibility & contrast

On white

9.90
#2931AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2931AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2931AB
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2931AB#FFFFFF#000000##FFFFFF
##2931AB1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#003DA9
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2931ab;
/* rgb */ color: rgb(41, 49, 171);
/* oklch */ color: oklch(39.9% 0.190 271.2);
Tailwind
colors: {
  custom: {
    50: '#786ac5',
    500: '#2931ab',
    950: '#000000',
  },
}
SCSS
$custom: #2931ab;
$custom-light: #786ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#2931ab",
  "rgb": {
    "r": 41,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 236.308,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39914,
    "c": 0.18997,
    "h": 271.2
  },
  "luminance": 0.05608
}

Semantic roles & 50–950 ramp

primary
#2931AB
secondary
#C4BF6C
accent
#DB43E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2931AB

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

Preview Lab → · Contrast checker → · Palette generator →

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