#2931B2#2931B2

#2931B2 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.6% C 0.199 H 270.9°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#2931B2
RGBrgb(41, 49, 178)
HSLhsl(236, 63%, 43%)
HSVhsv(236, 77%, 70%)
CMYKcmyk(77%, 72.5%, 0%, 30.2%)
CIE-LABlab(29.11, 41.96, -68.63)
CIE-LCHlch(29.11, 80.44, 301.44°)
OKLaboklab(40.64% 0.0031 -0.1987)
OKLCHoklch(40.64% 0.199 270.9)
XYZxyz(10.0459, 5.8813, 42.7166)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2931B2 #B2AA29
analogous
#2976B2 #2931B2 #6529B2
triadic
#2931B2 #B22931 #31B229
tetradic
#2931B2 #B22976 #B2AA29 #29B265
square
#2931B2 #B22976 #B2AA29 #29B265
split-complementary
#2931B2 #B26529 #76B229
monochromatic
#12164F #1E2380 #2931B2 #444DD4 #767CDF

Accessibility & contrast

On white

9.65
#2931B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2931B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2931B2
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2931B2#FFFFFF#000000##FFFFFF
##2931B21.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#00566E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2931b2;
/* rgb */ color: rgb(41, 49, 178);
/* oklch */ color: oklch(40.6% 0.199 270.9);
Tailwind
colors: {
  custom: {
    50: '#7a6aca',
    500: '#2931b2',
    950: '#000000',
  },
}
SCSS
$custom: #2931b2;
$custom-light: #7a6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2931b2",
  "rgb": {
    "r": 41,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 236.496,
    "s": 62.557,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40637,
    "c": 0.19873,
    "h": 270.9
  },
  "luminance": 0.05882
}

Semantic roles & 50–950 ramp

primary
#2931B2
secondary
#C7C270
accent
#DC42E6
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2931B2

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

Preview Lab → · Contrast checker → · Palette generator →

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