#2C1FB3#2C1FB3

#2C1FB3 is a dark, highly saturated blue. Relative luminance 0.048; OKLCH L 38.6% C 0.215 H 273.5°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#2C1FB3
RGBrgb(44, 31, 179)
HSLhsl(245, 70%, 41%)
HSVhsv(245, 83%, 70%)
CMYKcmyk(75.4%, 82.7%, 0%, 29.8%)
CIE-LABlab(26.07, 52.04, -74.26)
CIE-LCHlch(26.07, 90.68, 305.02°)
OKLaboklab(38.57% 0.0132 -0.2148)
OKLCHoklch(38.57% 0.215 273.5)
XYZxyz(9.6627, 4.7691, 43.0504)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1FB3 #A6B31F
analogous
#1F5CB3 #2C1FB3 #761FB3
triadic
#2C1FB3 #B32C1F #1FB32C
tetradic
#2C1FB3 #B31F5C #A6B31F #1FB376
square
#2C1FB3 #B31F5C #A6B31F #1FB376
split-complementary
#2C1FB3 #B3761F #5CB31F
monochromatic
#120D4B #1F167F #2C1FB3 #4233DC #7368E5

Accessibility & contrast

On white

10.75
#2C1FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2C1FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1FB3
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1FB3#FFFFFF#000000##FFFFFF
##2C1FB31.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0037B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c1fb3;
/* rgb */ color: rgb(44, 31, 179);
/* oklch */ color: oklch(38.6% 0.215 273.5);
Tailwind
colors: {
  custom: {
    50: '#7d60cb',
    500: '#2c1fb3',
    950: '#000000',
  },
}
SCSS
$custom: #2c1fb3;
$custom-light: #7d60cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1fb3",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 245.27,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38574,
    "c": 0.21519,
    "h": 273.5
  },
  "luminance": 0.0477
}

Semantic roles & 50–950 ramp

primary
#2C1FB3
secondary
#C1CA64
accent
#ED3BDE
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2C1FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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