#2931AD#2931AD

#2931AD is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.193 H 271.1°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#2931AD
RGBrgb(41, 49, 173)
HSLhsl(236, 62%, 42%)
HSVhsv(236, 76%, 68%)
CMYKcmyk(76.3%, 71.7%, 0%, 32.2%)
CIE-LABlab(28.60, 40.23, -66.49)
CIE-LCHlch(28.60, 77.71, 301.18°)
OKLaboklab(40.12% 0.0038 -0.1925)
OKLCHoklch(40.12% 0.193 271.1)
XYZxyz(9.5530, 5.6841, 40.1207)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2931AD #ADA529
analogous
#2973AD #2931AD #6329AD
triadic
#2931AD #AD2931 #31AD29
tetradic
#2931AD #AD2973 #ADA529 #29AD63
square
#2931AD #AD2973 #ADA529 #29AD63
split-complementary
#2931AD #AD6329 #73AD29
monochromatic
#12154A #1D237C #2931AD #414AD2 #7379DE

Accessibility & contrast

On white

9.83
#2931AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2931AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2931AD
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2931AD#FFFFFF#000000##FFFFFF
##2931AD1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB1
Deuteranopia (green-blind)
#003DAB
Tritanopia (blue-blind)
#00546B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2931ad;
/* rgb */ color: rgb(41, 49, 173);
/* oklch */ color: oklch(40.1% 0.193 271.1);
Tailwind
colors: {
  custom: {
    50: '#796ac7',
    500: '#2931ad',
    950: '#000000',
  },
}
SCSS
$custom: #2931ad;
$custom-light: #796ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#2931ad",
  "rgb": {
    "r": 41,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 236.364,
    "s": 61.682,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40119,
    "c": 0.1925,
    "h": 271.1
  },
  "luminance": 0.05685
}

Semantic roles & 50–950 ramp

primary
#2931AD
secondary
#C5C06D
accent
#DB43E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2931AD

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

Preview Lab → · Contrast checker → · Palette generator →

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