#2C2EA5#2C2EA5

#2C2EA5 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.185 H 273.1°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#2C2EA5
RGBrgb(44, 46, 165)
HSLhsl(239, 58%, 41%)
HSVhsv(239, 73%, 65%)
CMYKcmyk(73.3%, 72.1%, 0%, 35.3%)
CIE-LABlab(27.31, 39.55, -63.79)
CIE-LCHlch(27.31, 75.05, 301.80°)
OKLaboklab(39% 0.0099 -0.1845)
OKLCHoklch(39% 0.185 273.1)
XYZxyz(8.8050, 5.2052, 36.1307)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2EA5 #A5A32C
analogous
#2C6AA5 #2C2EA5 #662CA5
triadic
#2C2EA5 #A52C2E #2EA52C
tetradic
#2C2EA5 #A52C6A #A5A32C #2CA566
square
#2C2EA5 #A52C6A #A5A32C #2CA566
split-complementary
#2C2EA5 #A5662C #6AA52C
monochromatic
#121344 #1F2175 #2C2EA5 #4244CD #7274D9

Accessibility & contrast

On white

10.29
#2C2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2C2EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2EA5
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2EA5#FFFFFF#000000##FFFFFF
##2C2EA51.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c2ea5;
/* rgb */ color: rgb(44, 46, 165);
/* oklch */ color: oklch(39.0% 0.185 273.1);
Tailwind
colors: {
  custom: {
    50: '#7868c1',
    500: '#2c2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #2c2ea5;
$custom-light: #7868c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2ea5",
  "rgb": {
    "r": 44,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 239.008,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38998,
    "c": 0.18479,
    "h": 273.1
  },
  "luminance": 0.05206
}

Semantic roles & 50–950 ramp

primary
#2C2EA5
secondary
#C1BF6C
accent
#DF47E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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