#2C1E90#2C1E90

#2C1E90 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.175 H 277.5°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#2C1E90
RGBrgb(44, 30, 144)
HSLhsl(247, 66%, 34%)
HSVhsv(247, 79%, 56%)
CMYKcmyk(69.4%, 79.2%, 0%, 43.5%)
CIE-LABlab(21.86, 41.64, -59.92)
CIE-LCHlch(21.86, 72.97, 304.80°)
OKLaboklab(34.47% 0.0229 -0.1731)
OKLCHoklch(34.47% 0.175 277.5)
XYZxyz(6.5354, 3.4771, 26.7069)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E90 #82901E
analogous
#1E4990 #2C1E90 #651E90
triadic
#2C1E90 #902C1E #1E902C
tetradic
#2C1E90 #901E49 #82901E #1E9065
square
#2C1E90 #901E49 #82901E #1E9065
split-complementary
#2C1E90 #90651E #49901E
monochromatic
#0D092B #1D135D #2C1E90 #3B29C3 #5F4EDA

Accessibility & contrast

On white

12.38
#2C1E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2C1E90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E90
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E90#FFFFFF#000000##FFFFFF
##2C1E901.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1e90;
/* rgb */ color: rgb(44, 30, 144);
/* oklch */ color: oklch(34.5% 0.175 277.5);
Tailwind
colors: {
  custom: {
    50: '#755db2',
    500: '#2c1e90',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e90;
$custom-light: #755db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e90",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 144
  },
  "hsl": {
    "h": 247.368,
    "s": 65.517,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34474,
    "c": 0.17463,
    "h": 277.5
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#2C1E90
secondary
#AFBD4D
accent
#E83FD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1E90

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

Preview Lab → · Contrast checker → · Palette generator →

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