#2C319A#2C319A

#2C319A is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.167 H 273.3°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#2C319A
RGBrgb(44, 49, 154)
HSLhsl(237, 56%, 39%)
HSVhsv(237, 71%, 60%)
CMYKcmyk(71.4%, 68.2%, 0%, 39.6%)
CIE-LABlab(26.92, 33.84, -57.75)
CIE-LCHlch(26.92, 66.93, 300.37°)
OKLaboklab(38.39% 0.0095 -0.1669)
OKLCHoklch(38.39% 0.167 273.3)
XYZxyz(7.9678, 5.0644, 31.1232)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C319A #9A952C
analogous
#2C689A #2C319A #5E2C9A
triadic
#2C319A #9A2C31 #319A2C
tetradic
#2C319A #9A2C68 #9A952C #2C9A5E
square
#2C319A #9A2C68 #9A952C #2C9A5E
split-complementary
#2C319A #9A5E2C #689A2C
monochromatic
#11133B #1E226A #2C319A #3C42C7 #6C70D5

Accessibility & contrast

On white

10.43
#2C319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2C319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C319A
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C319A#FFFFFF#000000##FFFFFF
##2C319A1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c319a;
/* rgb */ color: rgb(44, 49, 154);
/* oklch */ color: oklch(38.4% 0.167 273.3);
Tailwind
colors: {
  custom: {
    50: '#7569b9',
    500: '#2c319a',
    950: '#000000',
  },
}
SCSS
$custom: #2c319a;
$custom-light: #7569b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c319a",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 237.273,
    "s": 55.556,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38389,
    "c": 0.16715,
    "h": 273.3
  },
  "luminance": 0.05065
}

Semantic roles & 50–950 ramp

primary
#2C319A
secondary
#BCB866
accent
#D849DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C319A

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

Preview Lab → · Contrast checker → · Palette generator →

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