#2C2EA1#2C2EA1

#2C2EA1 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.180 H 273.3°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#2C2EA1
RGBrgb(44, 46, 161)
HSLhsl(239, 57%, 40%)
HSVhsv(239, 73%, 63%)
CMYKcmyk(72.7%, 71.4%, 0%, 36.9%)
CIE-LABlab(26.91, 38.17, -62.03)
CIE-LCHlch(26.91, 72.83, 301.61°)
OKLaboklab(38.59% 0.0105 -0.1794)
OKLCHoklch(38.59% 0.18 273.3)
XYZxyz(8.4466, 5.0618, 34.2432)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2EA1 #A19F2C
analogous
#2C69A1 #2C2EA1 #642CA1
triadic
#2C2EA1 #A12C2E #2EA12C
tetradic
#2C2EA1 #A12C69 #A19F2C #2CA164
square
#2C2EA1 #A12C69 #A19F2C #2CA164
split-complementary
#2C2EA1 #A1642C #69A12C
monochromatic
#121341 #1F2071 #2C2EA1 #4042CB #7071D8

Accessibility & contrast

On white

10.43
#2C2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2C2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2EA1
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2EA1#FFFFFF#000000##FFFFFF
##2C2EA11.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#003A9F
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c2ea1;
/* rgb */ color: rgb(44, 46, 161);
/* oklch */ color: oklch(38.6% 0.180 273.3);
Tailwind
colors: {
  custom: {
    50: '#7768be',
    500: '#2c2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #2c2ea1;
$custom-light: #7768be;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2ea1",
  "rgb": {
    "r": 44,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 238.974,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38589,
    "c": 0.17969,
    "h": 273.3
  },
  "luminance": 0.05063
}

Semantic roles & 50–950 ramp

primary
#2C2EA1
secondary
#BFBE6A
accent
#DE47E0
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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