#2C2168#2C2168

#2C2168 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.8% C 0.119 H 284.1°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#2C2168
RGBrgb(44, 33, 104)
HSLhsl(249, 52%, 27%)
HSVhsv(249, 68%, 41%)
CMYKcmyk(57.7%, 68.3%, 0%, 59.2%)
CIE-LABlab(18.46, 26.53, -40.03)
CIE-LCHlch(18.46, 48.02, 303.54°)
OKLaboklab(30.83% 0.0288 -0.115)
OKLCHoklch(30.83% 0.119 284.1)
XYZxyz(4.0805, 2.6224, 13.3852)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2168 #5D6821
analogous
#213A68 #2C2168 #502168
triadic
#2C2168 #682C21 #21682C
tetradic
#2C2168 #68213A #5D6821 #216850
square
#2C2168 #68213A #5D6821 #216850
split-complementary
#2C2168 #685021 #3A6821
monochromatic
#0A0717 #18123A #2C2168 #403096 #5541C3

Accessibility & contrast

On white

13.77
#2C2168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2168
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2168#FFFFFF#000000##FFFFFF
##2C21681.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#002B67
Tritanopia (blue-blind)
#113341
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c2168;
/* rgb */ color: rgb(44, 33, 104);
/* oklch */ color: oklch(30.8% 0.119 284.1);
Tailwind
colors: {
  custom: {
    50: '#6c5d94',
    500: '#2c2168',
    950: '#000000',
  },
}
SCSS
$custom: #2c2168;
$custom-light: #6c5d94;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2168",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 249.296,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30834,
    "c": 0.11852,
    "h": 284.1
  },
  "luminance": 0.02623
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C2168

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

Preview Lab → · Contrast checker → · Palette generator →

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