#2C2FA6#2C2FA6

#2C2FA6 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.185 H 272.9°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#2C2FA6
RGBrgb(44, 47, 166)
HSLhsl(239, 58%, 41%)
HSVhsv(239, 73%, 65%)
CMYKcmyk(73.5%, 71.7%, 0%, 34.9%)
CIE-LABlab(27.63, 39.29, -63.87)
CIE-LCHlch(27.63, 74.99, 301.60°)
OKLaboklab(39.26% 0.0092 -0.1847)
OKLCHoklch(39.26% 0.185 272.9)
XYZxyz(8.9358, 5.3208, 36.6251)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2FA6 #A6A32C
analogous
#2C6CA6 #2C2FA6 #662CA6
triadic
#2C2FA6 #A62C2F #2FA62C
tetradic
#2C2FA6 #A62C6C #A6A32C #2CA666
square
#2C2FA6 #A62C6C #A6A32C #2CA666
split-complementary
#2C2FA6 #A6662C #6CA62C
monochromatic
#121445 #1F2176 #2C2FA6 #4246CD #7375DA

Accessibility & contrast

On white

10.17
#2C2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2C2FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2FA6
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2FA6#FFFFFF#000000##FFFFFF
##2C2FA61.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c2fa6;
/* rgb */ color: rgb(44, 47, 166);
/* oklch */ color: oklch(39.3% 0.185 272.9);
Tailwind
colors: {
  custom: {
    50: '#7868c2',
    500: '#2c2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2c2fa6;
$custom-light: #7868c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2fa6",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 238.525,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39256,
    "c": 0.18498,
    "h": 272.9
  },
  "luminance": 0.05322
}

Semantic roles & 50–950 ramp

primary
#2C2FA6
secondary
#C1BF6D
accent
#DE46E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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