#2C319D#2C319D

#2C319D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.171 H 273.1°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#2C319D
RGBrgb(44, 49, 157)
HSLhsl(237, 56%, 39%)
HSVhsv(237, 72%, 62%)
CMYKcmyk(72%, 68.8%, 0%, 38.4%)
CIE-LABlab(27.20, 34.91, -59.11)
CIE-LCHlch(27.20, 68.65, 300.56°)
OKLaboklab(38.68% 0.0092 -0.1709)
OKLCHoklch(38.68% 0.171 273.1)
XYZxyz(8.2208, 5.1656, 32.4556)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C319D #9D982C
analogous
#2C6A9D #2C319D #602C9D
triadic
#2C319D #9D2C31 #319D2C
tetradic
#2C319D #9D2C6A #9D982C #2C9D60
square
#2C319D #9D2C6A #9D982C #2C9D60
split-complementary
#2C319D #9D602C #6A9D2C
monochromatic
#11133D #1F226D #2C319D #3D44C9 #6D72D6

Accessibility & contrast

On white

10.33
#2C319D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2C319D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C319D
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C319D#FFFFFF#000000##FFFFFF
##2C319D1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c319d;
/* rgb */ color: rgb(44, 49, 157);
/* oklch */ color: oklch(38.7% 0.171 273.1);
Tailwind
colors: {
  custom: {
    50: '#7669bb',
    500: '#2c319d',
    950: '#000000',
  },
}
SCSS
$custom: #2c319d;
$custom-light: #7669bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c319d",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 237.345,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38681,
    "c": 0.17112,
    "h": 273.1
  },
  "luminance": 0.05166
}

Semantic roles & 50–950 ramp

primary
#2C319D
secondary
#BDB968
accent
#D948E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C319D

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

Preview Lab → · Contrast checker → · Palette generator →

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