#2C277D#2C277D

#2C277D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.140 H 278.4°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2C277D
RGBrgb(44, 39, 125)
HSLhsl(243, 52%, 32%)
HSVhsv(243, 69%, 49%)
CMYKcmyk(64.8%, 68.8%, 0%, 51%)
CIE-LABlab(21.82, 29.95, -48.06)
CIE-LCHlch(21.82, 56.62, 301.93°)
OKLaboklab(33.86% 0.0205 -0.1385)
OKLCHoklch(33.86% 0.14 278.4)
XYZxyz(5.4647, 3.4668, 19.7792)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C277D #787D27
analogous
#274D7D #2C277D #57277D
triadic
#2C277D #7D2C27 #277D2C
tetradic
#2C277D #7D274D #787D27 #277D57
square
#2C277D #7D274D #787D27 #277D57
split-complementary
#2C277D #7D5727 #4D7D27
monochromatic
#0B0A20 #1C184E #2C277D #3C36AC #5B55CA

Accessibility & contrast

On white

12.40
#2C277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C277D
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C277D#FFFFFF#000000##FFFFFF
##2C277D1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c277d;
/* rgb */ color: rgb(44, 39, 125);
/* oklch */ color: oklch(33.9% 0.140 278.4);
Tailwind
colors: {
  custom: {
    50: '#7062a3',
    500: '#2c277d',
    950: '#000000',
  },
}
SCSS
$custom: #2c277d;
$custom-light: #7062a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c277d",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 243.488,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33863,
    "c": 0.14003,
    "h": 278.4
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C277D

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

Preview Lab → · Contrast checker → · Palette generator →

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