#2C319B#2C319B

#2C319B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.168 H 273.2°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#2C319B
RGBrgb(44, 49, 155)
HSLhsl(237, 56%, 39%)
HSVhsv(237, 72%, 61%)
CMYKcmyk(71.6%, 68.4%, 0%, 39.2%)
CIE-LABlab(27.01, 34.19, -58.21)
CIE-LCHlch(27.01, 67.51, 300.43°)
OKLaboklab(38.49% 0.0094 -0.1682)
OKLCHoklch(38.49% 0.168 273.2)
XYZxyz(8.0514, 5.0979, 31.5637)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C319B #9B962C
analogous
#2C699B #2C319B #5F2C9B
triadic
#2C319B #9B2C31 #319B2C
tetradic
#2C319B #9B2C69 #9B962C #2C9B5F
square
#2C319B #9B2C69 #9B962C #2C9B5F
split-complementary
#2C319B #9B5F2C #699B2C
monochromatic
#11133C #1E226B #2C319B #3C43C8 #6C71D5

Accessibility & contrast

On white

10.40
#2C319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2C319B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C319B
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C319B#FFFFFF#000000##FFFFFF
##2C319B1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c319b;
/* rgb */ color: rgb(44, 49, 155);
/* oklch */ color: oklch(38.5% 0.168 273.2);
Tailwind
colors: {
  custom: {
    50: '#7669b9',
    500: '#2c319b',
    950: '#000000',
  },
}
SCSS
$custom: #2c319b;
$custom-light: #7669b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c319b",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 237.297,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38486,
    "c": 0.16848,
    "h": 273.2
  },
  "luminance": 0.05099
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C319B

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

Preview Lab → · Contrast checker → · Palette generator →

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