#2B31A3#2B31A3

#2B31A3 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.2% C 0.179 H 272.3°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#2B31A3
RGBrgb(43, 49, 163)
HSLhsl(237, 58%, 40%)
HSVhsv(237, 74%, 64%)
CMYKcmyk(73.6%, 69.9%, 0%, 36.1%)
CIE-LABlab(27.72, 36.92, -61.91)
CIE-LCHlch(27.72, 72.08, 300.81°)
OKLaboklab(39.22% 0.0073 -0.1791)
OKLCHoklch(39.22% 0.179 272.3)
XYZxyz(8.7032, 5.3537, 35.2179)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B31A3 #A39D2B
analogous
#2B6DA3 #2B31A3 #612BA3
triadic
#2B31A3 #A32B31 #31A32B
tetradic
#2B31A3 #A32B6D #A39D2B #2BA361
square
#2B31A3 #A32B6D #A39D2B #2BA361
split-complementary
#2B31A3 #A3612B #6DA32B
monochromatic
#111442 #1E2273 #2B31A3 #3F46CC #6F75D9

Accessibility & contrast

On white

10.14
#2B31A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2B31A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B31A3
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B31A3#FFFFFF#000000##FFFFFF
##2B31A31.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A6
Deuteranopia (green-blind)
#003CA1
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2b31a3;
/* rgb */ color: rgb(43, 49, 163);
/* oklch */ color: oklch(39.2% 0.179 272.3);
Tailwind
colors: {
  custom: {
    50: '#776abf',
    500: '#2b31a3',
    950: '#000000',
  },
}
SCSS
$custom: #2b31a3;
$custom-light: #776abf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b31a3",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 237,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39215,
    "c": 0.17921,
    "h": 272.3
  },
  "luminance": 0.05355
}

Semantic roles & 50–950 ramp

primary
#2B31A3
secondary
#C0BC6A
accent
#DA46E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B31A3

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

Preview Lab → · Contrast checker → · Palette generator →

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