#2C317A#2C317A

#2C317A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.122 H 275.3°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#2C317A
RGBrgb(44, 49, 122)
HSLhsl(236, 47%, 33%)
HSVhsv(236, 64%, 48%)
CMYKcmyk(63.9%, 59.8%, 0%, 52.2%)
CIE-LABlab(24.12, 22.20, -42.41)
CIE-LCHlch(24.12, 47.87, 297.63°)
OKLaboklab(35.47% 0.0113 -0.1219)
OKLCHoklch(35.47% 0.122 275.3)
XYZxyz(5.6487, 4.1368, 18.9094)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C317A #7A752C
analogous
#2C587A #2C317A #4E2C7A
triadic
#2C317A #7A2C31 #317A2C
tetradic
#2C317A #7A2C58 #7A752C #2C7A4E
square
#2C317A #7A2C58 #7A752C #2C7A4E
split-complementary
#2C317A #7A4E2C #587A2C
monochromatic
#0C0D20 #1C1F4D #2C317A #3C43A7 #5C63C4

Accessibility & contrast

On white

11.49
#2C317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2C317A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C317A
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C317A#FFFFFF#000000##FFFFFF
##2C317A1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2c317a;
/* rgb */ color: rgb(44, 49, 122);
/* oklch */ color: oklch(35.5% 0.122 275.3);
Tailwind
colors: {
  custom: {
    50: '#6e69a1',
    500: '#2c317a',
    950: '#000000',
  },
}
SCSS
$custom: #2c317a;
$custom-light: #6e69a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c317a",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 236.154,
    "s": 46.988,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35466,
    "c": 0.1224,
    "h": 275.3
  },
  "luminance": 0.04137
}

Semantic roles & 50–950 ramp

primary
#2C317A
secondary
#AAA557
accent
#CE51D7
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2C317A

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

Preview Lab → · Contrast checker → · Palette generator →

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