#2C2D7F#2C2D7F

#2C2D7F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.135 H 276.4°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#2C2D7F
RGBrgb(44, 45, 127)
HSLhsl(239, 49%, 34%)
HSVhsv(239, 65%, 50%)
CMYKcmyk(65.4%, 64.6%, 0%, 50.2%)
CIE-LABlab(23.49, 26.73, -46.61)
CIE-LCHlch(23.49, 53.73, 299.83°)
OKLaboklab(35.13% 0.015 -0.1342)
OKLCHoklch(35.13% 0.135 276.4)
XYZxyz(5.8066, 3.9441, 20.5298)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2D7F #7F7E2C
analogous
#2C567F #2C2D7F #542C7F
triadic
#2C2D7F #7F2C2D #2D7F2C
tetradic
#2C2D7F #7F2C56 #7F7E2C #2C7F54
square
#2C2D7F #7F2C56 #7F7E2C #2C7F54
split-complementary
#2C2D7F #7F542C #567F2C
monochromatic
#0D0D24 #1C1D52 #2C2D7F #3C3DAC #5E5FC7

Accessibility & contrast

On white

11.74
#2C2D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2C2D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2D7F
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2D7F#FFFFFF#000000##FFFFFF
##2C2D7F1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c2d7f;
/* rgb */ color: rgb(44, 45, 127);
/* oklch */ color: oklch(35.1% 0.135 276.4);
Tailwind
colors: {
  custom: {
    50: '#7066a5',
    500: '#2c2d7f',
    950: '#000000',
  },
}
SCSS
$custom: #2c2d7f;
$custom-light: #7066a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2d7f",
  "rgb": {
    "r": 44,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 239.277,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3513,
    "c": 0.13507,
    "h": 276.4
  },
  "luminance": 0.03945
}

Semantic roles & 50–950 ramp

primary
#2C2D7F
secondary
#ADAC59
accent
#D650D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2C2D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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