#2C2FA2#2C2FA2

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

Color values

HEX#2C2FA2
RGBrgb(44, 47, 162)
HSLhsl(238, 57%, 40%)
HSVhsv(238, 73%, 64%)
CMYKcmyk(72.8%, 71%, 0%, 36.5%)
CIE-LABlab(27.23, 37.91, -62.10)
CIE-LCHlch(27.23, 72.76, 301.40°)
OKLaboklab(38.85% 0.0098 -0.1796)
OKLCHoklch(38.85% 0.18 273.1)
XYZxyz(8.5746, 5.1763, 34.7226)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2FA2 #A29F2C
analogous
#2C6AA2 #2C2FA2 #642CA2
triadic
#2C2FA2 #A22C2F #2FA22C
tetradic
#2C2FA2 #A22C6A #A29F2C #2CA264
square
#2C2FA2 #A22C6A #A29F2C #2CA264
split-complementary
#2C2FA2 #A2642C #6AA22C
monochromatic
#121342 #1F2172 #2C2FA2 #4044CB #7073D8

Accessibility & contrast

On white

10.32
#2C2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2FA2
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2FA2#FFFFFF#000000##FFFFFF
##2C2FA21.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c2fa2;
/* rgb */ color: rgb(44, 47, 162);
/* oklch */ color: oklch(38.9% 0.180 273.1);
Tailwind
colors: {
  custom: {
    50: '#7768bf',
    500: '#2c2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #2c2fa2;
$custom-light: #7768bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2fa2",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 238.475,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.3885,
    "c": 0.17988,
    "h": 273.1
  },
  "luminance": 0.05177
}

Semantic roles & 50–950 ramp

primary
#2C2FA2
secondary
#BFBD6A
accent
#DD47E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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