#2C317E#2C317E

#2C317E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.128 H 275.0°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2C317E
RGBrgb(44, 49, 126)
HSLhsl(236, 48%, 33%)
HSVhsv(236, 65%, 49%)
CMYKcmyk(65.1%, 61.1%, 0%, 50.6%)
CIE-LABlab(24.44, 23.67, -44.42)
CIE-LCHlch(24.44, 50.33, 298.05°)
OKLaboklab(35.81% 0.0113 -0.1278)
OKLCHoklch(35.81% 0.128 275)
XYZxyz(5.9017, 4.2380, 20.2416)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C317E #7E792C
analogous
#2C5A7E #2C317E #502C7E
triadic
#2C317E #7E2C31 #317E2C
tetradic
#2C317E #7E2C5A #7E792C #2C7E50
square
#2C317E #7E2C5A #7E792C #2C7E50
split-complementary
#2C317E #7E502C #5A7E2C
monochromatic
#0C0E23 #1C1F51 #2C317E #3C43AB #5E64C7

Accessibility & contrast

On white

11.37
#2C317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C317E
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C317E#FFFFFF#000000##FFFFFF
##2C317E1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c317e;
/* rgb */ color: rgb(44, 49, 126);
/* oklch */ color: oklch(35.8% 0.128 275.0);
Tailwind
colors: {
  custom: {
    50: '#6f69a4',
    500: '#2c317e',
    950: '#000000',
  },
}
SCSS
$custom: #2c317e;
$custom-light: #6f69a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c317e",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 236.341,
    "s": 48.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35809,
    "c": 0.12827,
    "h": 275
  },
  "luminance": 0.04238
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C317E

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

Preview Lab → · Contrast checker → · Palette generator →

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