#2A31B0#2A31B0

#2A31B0 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.196 H 271.3°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#2A31B0
RGBrgb(42, 49, 176)
HSLhsl(237, 61%, 43%)
HSVhsv(237, 76%, 69%)
CMYKcmyk(76.1%, 72.2%, 0%, 31%)
CIE-LABlab(28.96, 41.36, -67.69)
CIE-LCHlch(28.96, 79.32, 301.43°)
OKLaboklab(40.48% 0.0045 -0.1959)
OKLCHoklch(40.48% 0.196 271.3)
XYZxyz(9.8870, 5.8224, 41.6686)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A31B0 #B0A92A
analogous
#2A74B0 #2A31B0 #662AB0
triadic
#2A31B0 #B02A31 #31B02A
tetradic
#2A31B0 #B02A74 #B0A92A #2AB066
square
#2A31B0 #B02A74 #B0A92A #2AB066
split-complementary
#2A31B0 #B0662A #74B02A
monochromatic
#12154D #1E237F #2A31B0 #454CD3 #767CDE

Accessibility & contrast

On white

9.70
#2A31B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A31B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A31B0
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A31B0#FFFFFF#000000##FFFFFF
##2A31B01.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB4
Deuteranopia (green-blind)
#003EAE
Tritanopia (blue-blind)
#00556D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a31b0;
/* rgb */ color: rgb(42, 49, 176);
/* oklch */ color: oklch(40.5% 0.196 271.3);
Tailwind
colors: {
  custom: {
    50: '#7a6ac9',
    500: '#2a31b0',
    950: '#000000',
  },
}
SCSS
$custom: #2a31b0;
$custom-light: #7a6ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a31b0",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 236.866,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40482,
    "c": 0.19599,
    "h": 271.3
  },
  "luminance": 0.05823
}

Semantic roles & 50–950 ramp

primary
#2A31B0
secondary
#C6C170
accent
#DC43E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A31B0

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

Preview Lab → · Contrast checker → · Palette generator →

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