#2C31B2#2C31B2

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

Color values

HEX#2C31B2
RGBrgb(44, 49, 178)
HSLhsl(238, 60%, 44%)
HSVhsv(238, 75%, 70%)
CMYKcmyk(75.3%, 72.5%, 0%, 30.2%)
CIE-LABlab(29.27, 42.23, -68.36)
CIE-LCHlch(29.27, 80.35, 301.70°)
OKLaboklab(40.8% 0.0064 -0.1978)
OKLCHoklch(40.8% 0.198 271.8)
XYZxyz(10.1702, 5.9454, 42.7224)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C31B2 #B2AD2C
analogous
#2C74B2 #2C31B2 #6A2CB2
triadic
#2C31B2 #B22C31 #31B22C
tetradic
#2C31B2 #B22C74 #B2AD2C #2CB26A
square
#2C31B2 #B22C74 #B2AD2C #2CB26A
split-complementary
#2C31B2 #B26A2C #74B22C
monochromatic
#141650 #202381 #2C31B2 #494ED2 #7A7EDE

Accessibility & contrast

On white

9.59
#2C31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2C31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C31B2
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C31B2#FFFFFF#000000##FFFFFF
##2C31B21.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.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: #2c31b2;
/* rgb */ color: rgb(44, 49, 178);
/* oklch */ color: oklch(40.8% 0.198 271.8);
Tailwind
colors: {
  custom: {
    50: '#7b6aca',
    500: '#2c31b2',
    950: '#000000',
  },
}
SCSS
$custom: #2c31b2;
$custom-light: #7b6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2c31b2",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 237.761,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40798,
    "c": 0.19795,
    "h": 271.8
  },
  "luminance": 0.05946
}

Semantic roles & 50–950 ramp

primary
#2C31B2
secondary
#C6C373
accent
#DE44E4
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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