#2C2179#2C2179

#2C2179 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.142 H 280.6°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#2C2179
RGBrgb(44, 33, 121)
HSLhsl(248, 57%, 30%)
HSVhsv(248, 73%, 47%)
CMYKcmyk(63.6%, 72.7%, 0%, 52.5%)
CIE-LABlab(20.06, 32.34, -48.41)
CIE-LCHlch(20.06, 58.21, 303.74°)
OKLaboklab(32.47% 0.0262 -0.1395)
OKLCHoklch(32.47% 0.142 280.6)
XYZxyz(5.0327, 3.0033, 18.3999)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2179 #6E7921
analogous
#214279 #2C2179 #582179
triadic
#2C2179 #792C21 #21792C
tetradic
#2C2179 #792142 #6E7921 #217958
square
#2C2179 #792142 #6E7921 #217958
split-complementary
#2C2179 #795821 #427921
monochromatic
#090719 #1B1449 #2C2179 #3D2EA9 #5847CD

Accessibility & contrast

On white

13.12
#2C2179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2C2179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2179
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2179#FFFFFF#000000##FFFFFF
##2C21791.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c2179;
/* rgb */ color: rgb(44, 33, 121);
/* oklch */ color: oklch(32.5% 0.142 280.6);
Tailwind
colors: {
  custom: {
    50: '#6f5da1',
    500: '#2c2179',
    950: '#000000',
  },
}
SCSS
$custom: #2c2179;
$custom-light: #6f5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2179",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 247.5,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32473,
    "c": 0.14198,
    "h": 280.6
  },
  "luminance": 0.03004
}

Semantic roles & 50–950 ramp

primary
#2C2179
secondary
#A0AC4A
accent
#E047CD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C2179

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

Preview Lab → · Contrast checker → · Palette generator →

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