#2B31A2#2B31A2

#2B31A2 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.178 H 272.4°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#2B31A2
RGBrgb(43, 49, 162)
HSLhsl(237, 58%, 40%)
HSVhsv(237, 73%, 64%)
CMYKcmyk(73.5%, 69.8%, 0%, 36.5%)
CIE-LABlab(27.62, 36.56, -61.46)
CIE-LCHlch(27.62, 71.52, 300.75°)
OKLaboklab(39.12% 0.0074 -0.1778)
OKLCHoklch(39.12% 0.178 272.4)
XYZxyz(8.6140, 5.3180, 34.7479)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B31A2 #A29C2B
analogous
#2B6CA2 #2B31A2 #612BA2
triadic
#2B31A2 #A22B31 #31A22B
tetradic
#2B31A2 #A22B6C #A29C2B #2BA261
square
#2B31A2 #A22B6C #A29C2B #2BA261
split-complementary
#2B31A2 #A2612B #6CA22B
monochromatic
#111441 #1E2272 #2B31A2 #3E45CC #6F74D9

Accessibility & contrast

On white

10.18
#2B31A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2B31A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B31A2
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B31A2#FFFFFF#000000##FFFFFF
##2B31A21.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b31a2;
/* rgb */ color: rgb(43, 49, 162);
/* oklch */ color: oklch(39.1% 0.178 272.4);
Tailwind
colors: {
  custom: {
    50: '#776abf',
    500: '#2b31a2',
    950: '#000000',
  },
}
SCSS
$custom: #2b31a2;
$custom-light: #776abf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b31a2",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 236.975,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39115,
    "c": 0.17792,
    "h": 272.4
  },
  "luminance": 0.05319
}

Semantic roles & 50–950 ramp

primary
#2B31A2
secondary
#C0BB69
accent
#D947E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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