#2A31B2#2A31B2

#2A31B2 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.7% C 0.198 H 271.2°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#2A31B2
RGBrgb(42, 49, 178)
HSLhsl(237, 62%, 43%)
HSVhsv(237, 76%, 70%)
CMYKcmyk(76.4%, 72.5%, 0%, 30.2%)
CIE-LABlab(29.16, 42.05, -68.54)
CIE-LCHlch(29.16, 80.41, 301.53°)
OKLaboklab(40.69% 0.0042 -0.1984)
OKLCHoklch(40.69% 0.198 271.2)
XYZxyz(10.0863, 5.9021, 42.7185)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A31B2 #B2AB2A
analogous
#2A75B2 #2A31B2 #672AB2
triadic
#2A31B2 #B22A31 #31B22A
tetradic
#2A31B2 #B22A75 #B2AB2A #2AB267
square
#2A31B2 #B22A75 #B2AB2A #2AB267
split-complementary
#2A31B2 #B2672A #75B22A
monochromatic
#13164F #1E2380 #2A31B2 #464DD3 #777DDF

Accessibility & contrast

On white

9.63
#2A31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2A31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A31B2
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A31B2#FFFFFF#000000##FFFFFF
##2A31B21.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.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: #2a31b2;
/* rgb */ color: rgb(42, 49, 178);
/* oklch */ color: oklch(40.7% 0.198 271.2);
Tailwind
colors: {
  custom: {
    50: '#7a6aca',
    500: '#2a31b2',
    950: '#000000',
  },
}
SCSS
$custom: #2a31b2;
$custom-light: #7a6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a31b2",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 236.912,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4069,
    "c": 0.19847,
    "h": 271.2
  },
  "luminance": 0.05903
}

Semantic roles & 50–950 ramp

primary
#2A31B2
secondary
#C7C271
accent
#DD43E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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