#2C1F90#2C1F90

#2C1F90 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.174 H 277.4°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#2C1F90
RGBrgb(44, 31, 144)
HSLhsl(247, 65%, 34%)
HSVhsv(247, 78%, 56%)
CMYKcmyk(69.4%, 78.5%, 0%, 43.5%)
CIE-LABlab(22.05, 41.11, -59.61)
CIE-LCHlch(22.05, 72.41, 304.59°)
OKLaboklab(34.6% 0.0224 -0.1722)
OKLCHoklch(34.6% 0.174 277.4)
XYZxyz(6.5611, 3.5285, 26.7155)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F90 #83901F
analogous
#1F4B90 #2C1F90 #651F90
triadic
#2C1F90 #902C1F #1F902C
tetradic
#2C1F90 #901F4B #83901F #1F9065
square
#2C1F90 #901F4B #83901F #1F9065
split-complementary
#2C1F90 #90651F #4B901F
monochromatic
#0D092B #1D145E #2C1F90 #3B2AC2 #6050D9

Accessibility & contrast

On white

12.31
#2C1F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2C1F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F90
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F90#FFFFFF#000000##FFFFFF
##2C1F901.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#00308E
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c1f90;
/* rgb */ color: rgb(44, 31, 144);
/* oklch */ color: oklch(34.6% 0.174 277.4);
Tailwind
colors: {
  custom: {
    50: '#755db2',
    500: '#2c1f90',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f90;
$custom-light: #755db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f90",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 246.903,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34604,
    "c": 0.17369,
    "h": 277.4
  },
  "luminance": 0.03529
}

Semantic roles & 50–950 ramp

primary
#2C1F90
secondary
#B0BC4E
accent
#E840D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1F90

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

Preview Lab → · Contrast checker → · Palette generator →

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