#2C317D#2C317D

#2C317D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.127 H 275.1°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#2C317D
RGBrgb(44, 49, 125)
HSLhsl(236, 48%, 33%)
HSVhsv(236, 65%, 49%)
CMYKcmyk(64.8%, 60.8%, 0%, 51%)
CIE-LABlab(24.36, 23.30, -43.92)
CIE-LCHlch(24.36, 49.72, 297.95°)
OKLaboklab(35.72% 0.0113 -0.1263)
OKLCHoklch(35.72% 0.127 275.1)
XYZxyz(5.8375, 4.2123, 19.9035)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C317D #7D782C
analogous
#2C597D #2C317D #4F2C7D
triadic
#2C317D #7D2C31 #317D2C
tetradic
#2C317D #7D2C59 #7D782C #2C7D4F
square
#2C317D #7D2C59 #7D782C #2C7D4F
split-complementary
#2C317D #7D4F2C #597D2C
monochromatic
#0C0E22 #1C1F50 #2C317D #3C43AA #5D64C6

Accessibility & contrast

On white

11.40
#2C317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2C317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C317D
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C317D#FFFFFF#000000##FFFFFF
##2C317D1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c317d;
/* rgb */ color: rgb(44, 49, 125);
/* oklch */ color: oklch(35.7% 0.127 275.1);
Tailwind
colors: {
  custom: {
    50: '#6f69a3',
    500: '#2c317d',
    950: '#000000',
  },
}
SCSS
$custom: #2c317d;
$custom-light: #6f69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c317d",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 236.296,
    "s": 47.929,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35723,
    "c": 0.12681,
    "h": 275.1
  },
  "luminance": 0.04213
}

Semantic roles & 50–950 ramp

primary
#2C317D
secondary
#ACA759
accent
#CF50D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2C317D

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

Preview Lab → · Contrast checker → · Palette generator →

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