#2B31AE#2B31AE

#2B31AE is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.3% C 0.193 H 271.7°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#2B31AE
RGBrgb(43, 49, 174)
HSLhsl(237, 60%, 43%)
HSVhsv(237, 75%, 68%)
CMYKcmyk(75.3%, 71.8%, 0%, 31.8%)
CIE-LABlab(28.81, 40.76, -66.73)
CIE-LCHlch(28.81, 78.20, 301.42°)
OKLaboklab(40.33% 0.0059 -0.1931)
OKLCHoklch(40.33% 0.193 271.7)
XYZxyz(9.7320, 5.7652, 40.6361)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B31AE #AEA82B
analogous
#2B72AE #2B31AE #672BAE
triadic
#2B31AE #AE2B31 #31AE2B
tetradic
#2B31AE #AE2B72 #AEA82B #2BAE67
square
#2B31AE #AE2B72 #AEA82B #2BAE67
split-complementary
#2B31AE #AE672B #72AE2B
monochromatic
#13154C #1F237D #2B31AE #454CD1 #767BDD

Accessibility & contrast

On white

9.75
#2B31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2B31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B31AE
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B31AE#FFFFFF#000000##FFFFFF
##2B31AE1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#003EAC
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2b31ae;
/* rgb */ color: rgb(43, 49, 174);
/* oklch */ color: oklch(40.3% 0.193 271.7);
Tailwind
colors: {
  custom: {
    50: '#7a6ac7',
    500: '#2b31ae',
    950: '#000000',
  },
}
SCSS
$custom: #2b31ae;
$custom-light: #7a6ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b31ae",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 237.252,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4033,
    "c": 0.19322,
    "h": 271.7
  },
  "luminance": 0.05766
}

Semantic roles & 50–950 ramp

primary
#2B31AE
secondary
#C5C170
accent
#DC44E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2B31AE

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

Preview Lab → · Contrast checker → · Palette generator →

#2B31AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva