#2C2C7B#2C2C7B

#2C2C7B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.131 H 277.1°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2C2C7B
RGBrgb(44, 44, 123)
HSLhsl(240, 47%, 33%)
HSVhsv(240, 64%, 48%)
CMYKcmyk(64.2%, 64.2%, 0%, 51.8%)
CIE-LABlab(22.88, 25.95, -45.06)
CIE-LCHlch(22.88, 51.99, 299.94°)
OKLaboklab(34.58% 0.0162 -0.1297)
OKLCHoklch(34.58% 0.131 277.1)
XYZxyz(5.5134, 3.7665, 19.1715)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2C7B #7B7B2C
analogous
#2C537B #2C2C7B #532C7B
triadic
#2C2C7B #7B2C2C #2C7B2C
tetradic
#2C2C7B #7B2C53 #7B7B2C #2C7B53
square
#2C2C7B #7B2C53 #7B7B2C #2C7B53
split-complementary
#2C2C7B #7B532C #537B2C
monochromatic
#0C0C21 #1C1C4E #2C2C7B #3C3CA8 #5D5DC5

Accessibility & contrast

On white

11.98
#2C2C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2C2C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2C7B
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2C7B#FFFFFF#000000##FFFFFF
##2C2C7B1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c2c7b;
/* rgb */ color: rgb(44, 44, 123);
/* oklch */ color: oklch(34.6% 0.131 277.1);
Tailwind
colors: {
  custom: {
    50: '#6f65a2',
    500: '#2c2c7b',
    950: '#000000',
  },
}
SCSS
$custom: #2c2c7b;
$custom-light: #6f65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2c7b",
  "rgb": {
    "r": 44,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 240,
    "s": 47.305,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3458,
    "c": 0.13069,
    "h": 277.1
  },
  "luminance": 0.03767
}

Semantic roles & 50–950 ramp

primary
#2C2C7B
secondary
#ABAB58
accent
#D751D7
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2C2C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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