#2C167B#2C167B

#2C167B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.156 H 282.4°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#2C167B
RGBrgb(44, 22, 123)
HSLhsl(253, 70%, 28%)
HSVhsv(253, 82%, 48%)
CMYKcmyk(64.2%, 82.1%, 0%, 51.8%)
CIE-LABlab(18.09, 39.13, -52.91)
CIE-LCHlch(18.09, 65.81, 306.48°)
OKLaboklab(31.15% 0.0336 -0.1526)
OKLCHoklch(31.15% 0.156 282.4)
XYZxyz(4.8997, 2.5390, 18.9669)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C167B #657B16
analogous
#16327B #2C167B #5E167B
triadic
#2C167B #7B2C16 #167B2C
tetradic
#2C167B #7B1632 #657B16 #167B5E
square
#2C167B #7B1632 #657B16 #167B5E
split-complementary
#2C167B #7B5E16 #327B16
monochromatic
#09051A #190D47 #2C167B #3F1FAF #5631DA

Accessibility & contrast

On white

13.93
#2C167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2C167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C167B
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C167B#FFFFFF#000000##FFFFFF
##2C167B1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c167b;
/* rgb */ color: rgb(44, 22, 123);
/* oklch */ color: oklch(31.2% 0.156 282.4);
Tailwind
colors: {
  custom: {
    50: '#7157a2',
    500: '#2c167b',
    950: '#000000',
  },
}
SCSS
$custom: #2c167b;
$custom-light: #7157a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c167b",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 253.069,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31152,
    "c": 0.15628,
    "h": 282.4
  },
  "luminance": 0.02539
}

Semantic roles & 50–950 ramp

primary
#2C167B
secondary
#97B03D
accent
#EC3BC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C167B

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

Preview Lab → · Contrast checker → · Palette generator →

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