#2C2167#2C2167

#2C2167 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.7% C 0.117 H 284.3°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#2C2167
RGBrgb(44, 33, 103)
HSLhsl(249, 51%, 27%)
HSVhsv(249, 68%, 40%)
CMYKcmyk(57.3%, 68%, 0%, 59.6%)
CIE-LABlab(18.37, 26.18, -39.52)
CIE-LCHlch(18.37, 47.40, 303.53°)
OKLaboklab(30.74% 0.029 -0.1135)
OKLCHoklch(30.74% 0.117 284.3)
XYZxyz(4.0300, 2.6022, 13.1193)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2167 #5C6721
analogous
#213967 #2C2167 #4F2167
triadic
#2C2167 #672C21 #21672C
tetradic
#2C2167 #672139 #5C6721 #21674F
square
#2C2167 #672139 #5C6721 #21674F
split-complementary
#2C2167 #674F21 #396721
monochromatic
#0A0717 #181239 #2C2167 #403095 #5540C2

Accessibility & contrast

On white

13.81
#2C2167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2C2167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2167
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2167#FFFFFF#000000##FFFFFF
##2C21671.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F69
Deuteranopia (green-blind)
#002B66
Tritanopia (blue-blind)
#123240
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c2167;
/* rgb */ color: rgb(44, 33, 103);
/* oklch */ color: oklch(30.7% 0.117 284.3);
Tailwind
colors: {
  custom: {
    50: '#6c5d93',
    500: '#2c2167',
    950: '#000000',
  },
}
SCSS
$custom: #2c2167;
$custom-light: #6c5d93;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2167",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 103
  },
  "hsl": {
    "h": 249.429,
    "s": 51.471,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30742,
    "c": 0.1171,
    "h": 284.3
  },
  "luminance": 0.02602
}

Semantic roles & 50–950 ramp

primary
#2C2167
secondary
#8E9B49
accent
#DB4DC5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2C2167

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

Preview Lab → · Contrast checker → · Palette generator →

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