#2C2FA1#2C2FA1

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

Color values

HEX#2C2FA1
RGBrgb(44, 47, 161)
HSLhsl(238, 57%, 40%)
HSVhsv(238, 73%, 63%)
CMYKcmyk(72.7%, 70.8%, 0%, 36.9%)
CIE-LABlab(27.13, 37.56, -61.66)
CIE-LCHlch(27.13, 72.20, 301.35°)
OKLaboklab(38.75% 0.0099 -0.1783)
OKLCHoklch(38.75% 0.179 273.2)
XYZxyz(8.4861, 5.1409, 34.2564)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2FA1 #A19E2C
analogous
#2C69A1 #2C2FA1 #642CA1
triadic
#2C2FA1 #A12C2F #2FA12C
tetradic
#2C2FA1 #A12C69 #A19E2C #2CA164
square
#2C2FA1 #A12C69 #A19E2C #2CA164
split-complementary
#2C2FA1 #A1642C #69A12C
monochromatic
#121341 #1F2171 #2C2FA1 #4043CB #7072D8

Accessibility & contrast

On white

10.35
#2C2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2C2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2FA1
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2FA1#FFFFFF#000000##FFFFFF
##2C2FA11.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#003B9F
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c2fa1;
/* rgb */ color: rgb(44, 47, 161);
/* oklch */ color: oklch(38.7% 0.179 273.2);
Tailwind
colors: {
  custom: {
    50: '#7768be',
    500: '#2c2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #2c2fa1;
$custom-light: #7768be;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2fa1",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 238.462,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38749,
    "c": 0.17859,
    "h": 273.2
  },
  "luminance": 0.05142
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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