#2C2D99#2C2D99

#2C2D99 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.170 H 274.1°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#2C2D99
RGBrgb(44, 45, 153)
HSLhsl(239, 55%, 39%)
HSVhsv(239, 71%, 60%)
CMYKcmyk(71.2%, 70.6%, 0%, 40%)
CIE-LABlab(25.90, 35.99, -58.82)
CIE-LCHlch(25.90, 68.96, 301.47°)
OKLaboklab(37.62% 0.0123 -0.17)
OKLCHoklch(37.62% 0.17 274.1)
XYZxyz(7.7249, 4.7114, 30.6331)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2D99 #99982C
analogous
#2C6399 #2C2D99 #612C99
triadic
#2C2D99 #992C2D #2D992C
tetradic
#2C2D99 #992C63 #99982C #2C9961
square
#2C2D99 #992C63 #99982C #2C9961
split-complementary
#2C2D99 #99612C #63992C
monochromatic
#11113A #1E1F69 #2C2D99 #3B3DC7 #6B6CD4

Accessibility & contrast

On white

10.81
#2C2D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2C2D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2D99
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2D99#FFFFFF#000000##FFFFFF
##2C2D991.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003897
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c2d99;
/* rgb */ color: rgb(44, 45, 153);
/* oklch */ color: oklch(37.6% 0.170 274.1);
Tailwind
colors: {
  custom: {
    50: '#7567b8',
    500: '#2c2d99',
    950: '#000000',
  },
}
SCSS
$custom: #2c2d99;
$custom-light: #7567b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2d99",
  "rgb": {
    "r": 44,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 239.45,
    "s": 55.33,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37621,
    "c": 0.17044,
    "h": 274.1
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

primary
#2C2D99
secondary
#BBBA66
accent
#DD49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2C2D99

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

Preview Lab → · Contrast checker → · Palette generator →

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