#2C2FA7#2C2FA7

#2C2FA7 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.186 H 272.8°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#2C2FA7
RGBrgb(44, 47, 167)
HSLhsl(239, 58%, 41%)
HSVhsv(239, 74%, 65%)
CMYKcmyk(73.7%, 71.9%, 0%, 34.5%)
CIE-LABlab(27.73, 39.64, -64.31)
CIE-LCHlch(27.73, 75.54, 301.65°)
OKLaboklab(39.36% 0.0091 -0.186)
OKLCHoklch(39.36% 0.186 272.8)
XYZxyz(9.0279, 5.3576, 37.1101)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2FA7 #A7A42C
analogous
#2C6DA7 #2C2FA7 #672CA7
triadic
#2C2FA7 #A72C2F #2FA72C
tetradic
#2C2FA7 #A72C6D #A7A42C #2CA767
square
#2C2FA7 #A72C6D #A7A42C #2CA767
split-complementary
#2C2FA7 #A7672C #6DA72C
monochromatic
#121446 #1F2177 #2C2FA7 #4346CD #7376DA

Accessibility & contrast

On white

10.14
#2C2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2C2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2FA7
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2FA7#FFFFFF#000000##FFFFFF
##2C2FA71.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c2fa7;
/* rgb */ color: rgb(44, 47, 167);
/* oklch */ color: oklch(39.4% 0.186 272.8);
Tailwind
colors: {
  custom: {
    50: '#7968c2',
    500: '#2c2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2c2fa7;
$custom-light: #7968c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2fa7",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 238.537,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39358,
    "c": 0.18625,
    "h": 272.8
  },
  "luminance": 0.05359
}

Semantic roles & 50–950 ramp

primary
#2C2FA7
secondary
#C2C06D
accent
#DE46E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2C2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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