#2C2F96#2C2F96

#2C2F96 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.164 H 274.0°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#2C2F96
RGBrgb(44, 47, 150)
HSLhsl(238, 55%, 38%)
HSVhsv(238, 71%, 59%)
CMYKcmyk(70.7%, 68.7%, 0%, 41.2%)
CIE-LABlab(26.07, 33.68, -56.69)
CIE-LCHlch(26.07, 65.94, 300.72°)
OKLaboklab(37.66% 0.0113 -0.1638)
OKLCHoklch(37.66% 0.164 274)
XYZxyz(7.5584, 4.7698, 29.3706)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F96 #96932C
analogous
#2C6496 #2C2F96 #5E2C96
triadic
#2C2F96 #962C2F #2F962C
tetradic
#2C2F96 #962C64 #96932C #2C965E
square
#2C2F96 #962C64 #96932C #2C965E
split-complementary
#2C2F96 #965E2C #64962C
monochromatic
#101137 #1E2067 #2C2F96 #3A3EC5 #696CD3

Accessibility & contrast

On white

10.75
#2C2F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2C2F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2F96
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F96#FFFFFF#000000##FFFFFF
##2C2F961.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003994
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c2f96;
/* rgb */ color: rgb(44, 47, 150);
/* oklch */ color: oklch(37.7% 0.164 274.0);
Tailwind
colors: {
  custom: {
    50: '#7568b6',
    500: '#2c2f96',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f96;
$custom-light: #7568b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f96",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 238.302,
    "s": 54.639,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37658,
    "c": 0.16418,
    "h": 274
  },
  "luminance": 0.04771
}

Semantic roles & 50–950 ramp

primary
#2C2F96
secondary
#BAB764
accent
#DA4ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2C2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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