#2C2C9C#2C2C9C

#2C2C9C is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.175 H 274.1°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#2C2C9C
RGBrgb(44, 44, 156)
HSLhsl(240, 56%, 39%)
HSVhsv(240, 72%, 61%)
CMYKcmyk(71.8%, 71.8%, 0%, 38.8%)
CIE-LABlab(25.97, 37.65, -60.53)
CIE-LCHlch(25.97, 71.28, 301.88°)
OKLaboklab(37.76% 0.0124 -0.175)
OKLCHoklch(37.76% 0.175 274.1)
XYZxyz(7.9381, 4.7364, 31.9419)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2C9C #9C9C2C
analogous
#2C649C #2C2C9C #642C9C
triadic
#2C2C9C #9C2C2C #2C9C2C
tetradic
#2C2C9C #9C2C64 #9C9C2C #2C9C64
square
#2C2C9C #9C2C64 #9C9C2C #2C9C64
split-complementary
#2C2C9C #9C642C #649C2C
monochromatic
#11113D #1F1F6C #2C2C9C #3D3DC8 #6D6DD6

Accessibility & contrast

On white

10.78
#2C2C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2C2C9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2C9C
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2C9C#FFFFFF#000000##FFFFFF
##2C2C9C1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c2c9c;
/* rgb */ color: rgb(44, 44, 156);
/* oklch */ color: oklch(37.8% 0.175 274.1);
Tailwind
colors: {
  custom: {
    50: '#7666ba',
    500: '#2c2c9c',
    950: '#000000',
  },
}
SCSS
$custom: #2c2c9c;
$custom-light: #7666ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2c9c",
  "rgb": {
    "r": 44,
    "g": 44,
    "b": 156
  },
  "hsl": {
    "h": 240,
    "s": 56,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37764,
    "c": 0.17544,
    "h": 274.1
  },
  "luminance": 0.04737
}

Semantic roles & 50–950 ramp

primary
#2C2C9C
secondary
#BDBD67
accent
#DF49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C2C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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