#2C317F#2C317F

#2C317F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.130 H 275.0°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#2C317F
RGBrgb(44, 49, 127)
HSLhsl(236, 49%, 34%)
HSVhsv(236, 65%, 50%)
CMYKcmyk(65.4%, 61.4%, 0%, 50.2%)
CIE-LABlab(24.53, 24.04, -44.91)
CIE-LCHlch(24.53, 50.94, 298.16°)
OKLaboklab(35.9% 0.0113 -0.1292)
OKLCHoklch(35.9% 0.13 275)
XYZxyz(5.9665, 4.2639, 20.5832)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C317F #7F7A2C
analogous
#2C5A7F #2C317F #502C7F
triadic
#2C317F #7F2C31 #317F2C
tetradic
#2C317F #7F2C5A #7F7A2C #2C7F50
square
#2C317F #7F2C5A #7F7A2C #2C7F50
split-complementary
#2C317F #7F502C #5A7F2C
monochromatic
#0D0E24 #1C1F52 #2C317F #3C43AC #5E64C7

Accessibility & contrast

On white

11.33
#2C317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2C317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C317F
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C317F#FFFFFF#000000##FFFFFF
##2C317F1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c317f;
/* rgb */ color: rgb(44, 49, 127);
/* oklch */ color: oklch(35.9% 0.130 275.0);
Tailwind
colors: {
  custom: {
    50: '#6f69a5',
    500: '#2c317f',
    950: '#000000',
  },
}
SCSS
$custom: #2c317f;
$custom-light: #6f69a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c317f",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 236.386,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35896,
    "c": 0.12972,
    "h": 275
  },
  "luminance": 0.04264
}

Semantic roles & 50–950 ramp

primary
#2C317F
secondary
#ADA859
accent
#D050D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2C317F

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

Preview Lab → · Contrast checker → · Palette generator →

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