#2931A2#2931A2

#2931A2 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.178 H 271.7°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#2931A2
RGBrgb(41, 49, 162)
HSLhsl(236, 60%, 40%)
HSVhsv(236, 75%, 64%)
CMYKcmyk(74.7%, 69.8%, 0%, 36.5%)
CIE-LABlab(27.51, 36.35, -61.66)
CIE-LCHlch(27.51, 71.57, 300.52°)
OKLaboklab(39% 0.0052 -0.1784)
OKLCHoklch(39% 0.178 271.7)
XYZxyz(8.5321, 5.2758, 34.7441)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2931A2 #A29A29
analogous
#296EA2 #2931A2 #5E29A2
triadic
#2931A2 #A22931 #31A229
tetradic
#2931A2 #A2296E #A29A29 #29A25E
square
#2931A2 #A2296E #A29A29 #29A25E
split-complementary
#2931A2 #A25E29 #6EA229
monochromatic
#101340 #1D2271 #2931A2 #3B45CD #6C73DA

Accessibility & contrast

On white

10.22
#2931A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2931A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2931A2
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2931A2#FFFFFF#000000##FFFFFF
##2931A21.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#005065
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2931a2;
/* rgb */ color: rgb(41, 49, 162);
/* oklch */ color: oklch(39.0% 0.178 271.7);
Tailwind
colors: {
  custom: {
    50: '#7669bf',
    500: '#2931a2',
    950: '#000000',
  },
}
SCSS
$custom: #2931a2;
$custom-light: #7669bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2931a2",
  "rgb": {
    "r": 41,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 236.033,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39001,
    "c": 0.17845,
    "h": 271.7
  },
  "luminance": 0.05277
}

Semantic roles & 50–950 ramp

primary
#2931A2
secondary
#C0BA67
accent
#D845E3
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2931A2

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

Preview Lab → · Contrast checker → · Palette generator →

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