#2C2EA2#2C2EA2

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

Color values

HEX#2C2EA2
RGBrgb(44, 46, 162)
HSLhsl(239, 57%, 40%)
HSVhsv(239, 73%, 64%)
CMYKcmyk(72.8%, 71.6%, 0%, 36.5%)
CIE-LABlab(27.01, 38.52, -62.47)
CIE-LCHlch(27.01, 73.39, 301.66°)
OKLaboklab(38.69% 0.0104 -0.1807)
OKLCHoklch(38.69% 0.181 273.3)
XYZxyz(8.5351, 5.0972, 34.7095)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2EA2 #A2A02C
analogous
#2C69A2 #2C2EA2 #652CA2
triadic
#2C2EA2 #A22C2E #2EA22C
tetradic
#2C2EA2 #A22C69 #A2A02C #2CA265
square
#2C2EA2 #A22C69 #A2A02C #2CA265
split-complementary
#2C2EA2 #A2652C #69A22C
monochromatic
#121342 #1F2072 #2C2EA2 #4042CB #7072D8

Accessibility & contrast

On white

10.40
#2C2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2C2EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2EA2
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2EA2#FFFFFF#000000##FFFFFF
##2C2EA21.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c2ea2;
/* rgb */ color: rgb(44, 46, 162);
/* oklch */ color: oklch(38.7% 0.181 273.3);
Tailwind
colors: {
  custom: {
    50: '#7768bf',
    500: '#2c2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #2c2ea2;
$custom-light: #7768bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2ea2",
  "rgb": {
    "r": 44,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 238.983,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38691,
    "c": 0.18097,
    "h": 273.3
  },
  "luminance": 0.05098
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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