#2C319E#2C319E

#2C319E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.172 H 273.0°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#2C319E
RGBrgb(44, 49, 158)
HSLhsl(237, 56%, 40%)
HSVhsv(237, 72%, 62%)
CMYKcmyk(72.2%, 69%, 0%, 38%)
CIE-LABlab(27.30, 35.26, -59.57)
CIE-LCHlch(27.30, 69.22, 300.62°)
OKLaboklab(38.78% 0.0091 -0.1722)
OKLCHoklch(38.78% 0.172 273)
XYZxyz(8.3065, 5.1999, 32.9070)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C319E #9E992C
analogous
#2C6A9E #2C319E #602C9E
triadic
#2C319E #9E2C31 #319E2C
tetradic
#2C319E #9E2C6A #9E992C #2C9E60
square
#2C319E #9E2C6A #9E992C #2C9E60
split-complementary
#2C319E #9E602C #6A9E2C
monochromatic
#11133E #1F226E #2C319E #3E44C9 #6E72D7

Accessibility & contrast

On white

10.29
#2C319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2C319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C319E
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C319E#FFFFFF#000000##FFFFFF
##2C319E1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c319e;
/* rgb */ color: rgb(44, 49, 158);
/* oklch */ color: oklch(38.8% 0.172 273.0);
Tailwind
colors: {
  custom: {
    50: '#7669bc',
    500: '#2c319e',
    950: '#000000',
  },
}
SCSS
$custom: #2c319e;
$custom-light: #7669bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c319e",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 237.368,
    "s": 56.436,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38779,
    "c": 0.17243,
    "h": 273
  },
  "luminance": 0.05201
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C319E

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

Preview Lab → · Contrast checker → · Palette generator →

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