#2C165E#2C165E

#2C165E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.120 H 290.6°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#2C165E
RGBrgb(44, 22, 94)
HSLhsl(258, 62%, 23%)
HSVhsv(258, 77%, 37%)
CMYKcmyk(53.2%, 76.6%, 0%, 63.1%)
CIE-LABlab(15.05, 30.04, -39.00)
CIE-LCHlch(15.05, 49.22, 307.60°)
OKLaboklab(28.09% 0.042 -0.1119)
OKLCHoklch(28.09% 0.12 290.6)
XYZxyz(3.3454, 1.9173, 10.7813)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C165E #485E16
analogous
#16245E #2C165E #50165E
triadic
#2C165E #5E2C16 #165E2C
tetradic
#2C165E #5E1624 #485E16 #165E50
square
#2C165E #5E1624 #485E16 #165E50
split-complementary
#2C165E #5E5016 #245E16
monochromatic
#0C0619 #150A2C #2C165E #432290 #5A2DC1

Accessibility & contrast

On white

15.18
#2C165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2C165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C165E
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C165E#FFFFFF#000000##FFFFFF
##2C165E1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#1B2938
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c165e;
/* rgb */ color: rgb(44, 22, 94);
/* oklch */ color: oklch(28.1% 0.120 290.6);
Tailwind
colors: {
  custom: {
    50: '#6b558c',
    500: '#2c165e',
    950: '#000000',
  },
}
SCSS
$custom: #2c165e;
$custom-light: #6b558c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c165e",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 258.333,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28093,
    "c": 0.11955,
    "h": 290.6
  },
  "luminance": 0.01917
}

Semantic roles & 50–950 ramp

primary
#2C165E
secondary
#79953B
accent
#E543B3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C165E

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

Preview Lab → · Contrast checker → · Palette generator →

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