#2C2FB1#2C2FB1

#2C2FB1 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.4% C 0.199 H 272.2°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#2C2FB1
RGBrgb(44, 47, 177)
HSLhsl(239, 60%, 43%)
HSVhsv(239, 75%, 69%)
CMYKcmyk(75.1%, 73.4%, 0%, 30.6%)
CIE-LABlab(28.75, 43.06, -68.62)
CIE-LCHlch(28.75, 81.01, 302.11°)
OKLaboklab(40.39% 0.0075 -0.1986)
OKLCHoklch(40.39% 0.199 272.2)
XYZxyz(9.9884, 5.7418, 42.1683)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2FB1 #B1AE2C
analogous
#2C71B1 #2C2FB1 #6C2CB1
triadic
#2C2FB1 #B12C2F #2FB12C
tetradic
#2C2FB1 #B12C71 #B1AE2C #2CB16C
square
#2C2FB1 #B12C71 #B1AE2C #2CB16C
split-complementary
#2C2FB1 #B16C2C #71B12C
monochromatic
#14154F #202280 #2C2FB1 #494CD2 #7A7CDE

Accessibility & contrast

On white

9.77
#2C2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2C2FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2FB1
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2FB1#FFFFFF#000000##FFFFFF
##2C2FB11.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2c2fb1;
/* rgb */ color: rgb(44, 47, 177);
/* oklch */ color: oklch(40.4% 0.199 272.2);
Tailwind
colors: {
  custom: {
    50: '#7b69ca',
    500: '#2c2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #2c2fb1;
$custom-light: #7b69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2fb1",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 238.647,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40394,
    "c": 0.19875,
    "h": 272.2
  },
  "luminance": 0.05743
}

Semantic roles & 50–950 ramp

primary
#2C2FB1
secondary
#C6C473
accent
#E044E3
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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