#2C2D9B#2C2D9B

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

Color values

HEX#2C2D9B
RGBrgb(44, 45, 155)
HSLhsl(239, 56%, 39%)
HSVhsv(239, 72%, 61%)
CMYKcmyk(71.6%, 71%, 0%, 39.2%)
CIE-LABlab(26.09, 36.69, -59.72)
CIE-LCHlch(26.09, 70.09, 301.57°)
OKLaboklab(37.82% 0.012 -0.1726)
OKLCHoklch(37.82% 0.173 274)
XYZxyz(7.8915, 4.7780, 31.5104)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2D9B #9B9A2C
analogous
#2C659B #2C2D9B #632C9B
triadic
#2C2D9B #9B2C2D #2D9B2C
tetradic
#2C2D9B #9B2C65 #9B9A2C #2C9B63
square
#2C2D9B #9B2C65 #9B9A2C #2C9B63
split-complementary
#2C2D9B #9B632C #659B2C
monochromatic
#11113C #1E1F6B #2C2D9B #3C3EC8 #6C6DD5

Accessibility & contrast

On white

10.74
#2C2D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2C2D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2D9B
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2D9B#FFFFFF#000000##FFFFFF
##2C2D9B1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003999
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c2d9b;
/* rgb */ color: rgb(44, 45, 155);
/* oklch */ color: oklch(37.8% 0.173 274.0);
Tailwind
colors: {
  custom: {
    50: '#7667ba',
    500: '#2c2d9b',
    950: '#000000',
  },
}
SCSS
$custom: #2c2d9b;
$custom-light: #7667ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2d9b",
  "rgb": {
    "r": 44,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 239.459,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37822,
    "c": 0.17305,
    "h": 274
  },
  "luminance": 0.04779
}

Semantic roles & 50–950 ramp

primary
#2C2D9B
secondary
#BCBB67
accent
#DE49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C2D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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