#2C277C#2C277C

#2C277C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.139 H 278.6°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#2C277C
RGBrgb(44, 39, 124)
HSLhsl(244, 52%, 32%)
HSVhsv(244, 69%, 49%)
CMYKcmyk(64.5%, 68.5%, 0%, 51.4%)
CIE-LABlab(21.73, 29.59, -47.57)
CIE-LCHlch(21.73, 56.03, 301.89°)
OKLaboklab(33.77% 0.0206 -0.1371)
OKLCHoklch(33.77% 0.139 278.6)
XYZxyz(5.4011, 3.4413, 19.4445)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C277C #777C27
analogous
#274D7C #2C277C #56277C
triadic
#2C277C #7C2C27 #277C2C
tetradic
#2C277C #7C274D #777C27 #277C56
square
#2C277C #7C274D #777C27 #277C56
split-complementary
#2C277C #7C5627 #4D7C27
monochromatic
#0B0A1F #1B184D #2C277C #3D36AB #5B54C9

Accessibility & contrast

On white

12.44
#2C277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2C277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C277C
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C277C#FFFFFF#000000##FFFFFF
##2C277C1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c277c;
/* rgb */ color: rgb(44, 39, 124);
/* oklch */ color: oklch(33.8% 0.139 278.6);
Tailwind
colors: {
  custom: {
    50: '#6f62a3',
    500: '#2c277c',
    950: '#000000',
  },
}
SCSS
$custom: #2c277c;
$custom-light: #6f62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c277c",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 243.529,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33767,
    "c": 0.13864,
    "h": 278.6
  },
  "luminance": 0.03442
}

Semantic roles & 50–950 ramp

primary
#2C277C
secondary
#A8AE51
accent
#DC4CD3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2C277C

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

Preview Lab → · Contrast checker → · Palette generator →

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