#2C319F#2C319F

#2C319F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.174 H 272.9°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#2C319F
RGBrgb(44, 49, 159)
HSLhsl(237, 57%, 40%)
HSVhsv(237, 72%, 62%)
CMYKcmyk(72.3%, 69.2%, 0%, 37.6%)
CIE-LABlab(27.39, 35.62, -60.02)
CIE-LCHlch(27.39, 69.79, 300.69°)
OKLaboklab(38.88% 0.0089 -0.1735)
OKLCHoklch(38.88% 0.174 272.9)
XYZxyz(8.3929, 5.2345, 33.3622)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C319F #9F9A2C
analogous
#2C6B9F #2C319F #602C9F
triadic
#2C319F #9F2C31 #319F2C
tetradic
#2C319F #9F2C6B #9F9A2C #2C9F60
square
#2C319F #9F2C6B #9F9A2C #2C9F60
split-complementary
#2C319F #9F602C #6B9F2C
monochromatic
#11133F #1F226F #2C319F #3E45CA #6E73D7

Accessibility & contrast

On white

10.26
#2C319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2C319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C319F
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C319F#FFFFFF#000000##FFFFFF
##2C319F1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c319f;
/* rgb */ color: rgb(44, 49, 159);
/* oklch */ color: oklch(38.9% 0.174 272.9);
Tailwind
colors: {
  custom: {
    50: '#7669bc',
    500: '#2c319f',
    950: '#000000',
  },
}
SCSS
$custom: #2c319f;
$custom-light: #7669bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c319f",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 237.391,
    "s": 56.65,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38878,
    "c": 0.17374,
    "h": 272.9
  },
  "luminance": 0.05235
}

Semantic roles & 50–950 ramp

primary
#2C319F
secondary
#BEBA69
accent
#D948E0
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C319F

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

Preview Lab → · Contrast checker → · Palette generator →

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