#2C315E#2C315E

#2C315E is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.3% C 0.079 H 276.4°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#2C315E
RGBrgb(44, 49, 94)
HSLhsl(234, 36%, 27%)
HSVhsv(234, 53%, 37%)
CMYKcmyk(53.2%, 47.9%, 0%, 63.1%)
CIE-LABlab(22.09, 11.99, -27.62)
CIE-LCHlch(22.09, 30.11, 293.46°)
OKLaboklab(33.29% 0.0089 -0.0784)
OKLCHoklch(33.29% 0.079 276.4)
XYZxyz(4.1568, 3.5400, 11.0518)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C315E #5E592C
analogous
#2C4A5E #2C315E #402C5E
triadic
#2C315E #5E2C31 #315E2C
tetradic
#2C315E #5E2C4A #5E592C #2C5E40
square
#2C315E #5E2C4A #5E592C #2C5E40
split-complementary
#2C315E #5E402C #4A5E2C
monochromatic
#0A0B15 #181B34 #2C315E #404788 #555EAF

Accessibility & contrast

On white

12.30
#2C315E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2C315E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C315E
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C315E#FFFFFF#000000##FFFFFF
##2C315E1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3760
Deuteranopia (green-blind)
#1A335D
Tritanopia (blue-blind)
#183B43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c315e;
/* rgb */ color: rgb(44, 49, 94);
/* oklch */ color: oklch(33.3% 0.079 276.4);
Tailwind
colors: {
  custom: {
    50: '#69688c',
    500: '#2c315e',
    950: '#000000',
  },
}
SCSS
$custom: #2c315e;
$custom-light: #69688c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c315e",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 234,
    "s": 36.232,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33291,
    "c": 0.0789,
    "h": 276.4
  },
  "luminance": 0.0354
}

Semantic roles & 50–950 ramp

primary
#2C315E
secondary
#908A56
accent
#C15CCC
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #2C315E

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

Preview Lab → · Contrast checker → · Palette generator →

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