#2C2D8A#2C2D8A

#2C2D8A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.150 H 275.4°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2C2D8A
RGBrgb(44, 45, 138)
HSLhsl(239, 52%, 36%)
HSVhsv(239, 68%, 54%)
CMYKcmyk(68.1%, 67.4%, 0%, 45.9%)
CIE-LABlab(24.47, 30.69, -51.89)
CIE-LCHlch(24.47, 60.29, 300.60°)
OKLaboklab(36.15% 0.0141 -0.1497)
OKLCHoklch(36.15% 0.15 275.4)
XYZxyz(6.5630, 4.2466, 24.5136)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2D8A #8A892C
analogous
#2C5C8A #2C2D8A #5A2C8A
triadic
#2C2D8A #8A2C2D #2D8A2C
tetradic
#2C2D8A #8A2C5C #8A892C #2C8A5A
square
#2C2D8A #8A2C5C #8A892C #2C8A5A
split-complementary
#2C2D8A #8A5A2C #5C8A2C
monochromatic
#0E0F2D #1D1E5C #2C2D8A #3B3CB8 #6364CD

Accessibility & contrast

On white

11.36
#2C2D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2C2D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2D8A
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2D8A#FFFFFF#000000##FFFFFF
##2C2D8A1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c2d8a;
/* rgb */ color: rgb(44, 45, 138);
/* oklch */ color: oklch(36.2% 0.150 275.4);
Tailwind
colors: {
  custom: {
    50: '#7266ad',
    500: '#2c2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #2c2d8a;
$custom-light: #7266ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2d8a",
  "rgb": {
    "r": 44,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 239.362,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36154,
    "c": 0.1504,
    "h": 275.4
  },
  "luminance": 0.04247
}

Semantic roles & 50–950 ramp

primary
#2C2D8A
secondary
#B4B35E
accent
#DA4DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2C2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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