#2C2D97#2C2D97

#2C2D97 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.168 H 274.3°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#2C2D97
RGBrgb(44, 45, 151)
HSLhsl(239, 55%, 38%)
HSVhsv(239, 71%, 59%)
CMYKcmyk(70.9%, 70.2%, 0%, 40.8%)
CIE-LABlab(25.70, 35.29, -57.91)
CIE-LCHlch(25.70, 67.82, 301.36°)
OKLaboklab(37.42% 0.0125 -0.1674)
OKLCHoklch(37.42% 0.168 274.3)
XYZxyz(7.5612, 4.6459, 29.7704)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2D97 #97962C
analogous
#2C6297 #2C2D97 #602C97
triadic
#2C2D97 #972C2D #2D972C
tetradic
#2C2D97 #972C62 #97962C #2C9760
square
#2C2D97 #972C62 #97962C #2C9760
split-complementary
#2C2D97 #97602C #62972C
monochromatic
#101138 #1E1F68 #2C2D97 #3A3CC6 #6A6BD4

Accessibility & contrast

On white

10.88
#2C2D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2C2D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2D97
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2D97#FFFFFF#000000##FFFFFF
##2C2D971.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c2d97;
/* rgb */ color: rgb(44, 45, 151);
/* oklch */ color: oklch(37.4% 0.168 274.3);
Tailwind
colors: {
  custom: {
    50: '#7567b7',
    500: '#2c2d97',
    950: '#000000',
  },
}
SCSS
$custom: #2c2d97;
$custom-light: #7567b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2d97",
  "rgb": {
    "r": 44,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 239.439,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37421,
    "c": 0.16783,
    "h": 274.3
  },
  "luminance": 0.04647
}

Semantic roles & 50–950 ramp

primary
#2C2D97
secondary
#BAB965
accent
#DD4ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2C2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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