#2C1F7D#2C1F7D

#2C1F7D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.150 H 280.4°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#2C1F7D
RGBrgb(44, 31, 125)
HSLhsl(248, 60%, 31%)
HSVhsv(248, 75%, 49%)
CMYKcmyk(64.8%, 75.2%, 0%, 51%)
CIE-LABlab(20.03, 34.88, -51.00)
CIE-LCHlch(20.03, 61.79, 304.37°)
OKLaboklab(32.57% 0.027 -0.1471)
OKLCHoklch(32.57% 0.15 280.4)
XYZxyz(5.2292, 2.9957, 19.7007)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F7D #707D1F
analogous
#1F417D #2C1F7D #5B1F7D
triadic
#2C1F7D #7D2C1F #1F7D2C
tetradic
#2C1F7D #7D1F41 #707D1F #1F7D5B
square
#2C1F7D #7D1F41 #707D1F #1F7D5B
split-complementary
#2C1F7D #7D5B1F #417D1F
monochromatic
#09071B #1B134C #2C1F7D #3D2BAE #5945D1

Accessibility & contrast

On white

13.13
#2C1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1F7D
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F7D#FFFFFF#000000##FFFFFF
##2C1F7D1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1f7d;
/* rgb */ color: rgb(44, 31, 125);
/* oklch */ color: oklch(32.6% 0.150 280.4);
Tailwind
colors: {
  custom: {
    50: '#705ca4',
    500: '#2c1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f7d;
$custom-light: #705ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f7d",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 248.298,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32574,
    "c": 0.14958,
    "h": 280.4
  },
  "luminance": 0.02996
}

Semantic roles & 50–950 ramp

primary
#2C1F7D
secondary
#A2B048
accent
#E344CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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