#2C2F84#2C2F84

#2C2F84 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.140 H 275.3°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2C2F84
RGBrgb(44, 47, 132)
HSLhsl(238, 50%, 35%)
HSVhsv(238, 67%, 52%)
CMYKcmyk(66.7%, 64.4%, 0%, 48.2%)
CIE-LABlab(24.43, 27.21, -48.21)
CIE-LCHlch(24.43, 55.36, 299.44°)
OKLaboklab(35.96% 0.0129 -0.1389)
OKLCHoklch(35.96% 0.14 275.3)
XYZxyz(6.2187, 4.2339, 22.3148)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F84 #84812C
analogous
#2C5B84 #2C2F84 #552C84
triadic
#2C2F84 #842C2F #2F842C
tetradic
#2C2F84 #842C5B #84812C #2C8455
square
#2C2F84 #842C5B #84812C #2C8455
split-complementary
#2C2F84 #84552C #5B842C
monochromatic
#0D0E28 #1D1F56 #2C2F84 #3B3FB2 #6064CA

Accessibility & contrast

On white

11.37
#2C2F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2F84
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F84#FFFFFF#000000##FFFFFF
##2C2F841.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E87
Deuteranopia (green-blind)
#003682
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c2f84;
/* rgb */ color: rgb(44, 47, 132);
/* oklch */ color: oklch(36.0% 0.140 275.3);
Tailwind
colors: {
  custom: {
    50: '#7067a9',
    500: '#2c2f84',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f84;
$custom-light: #7067a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f84",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 237.955,
    "s": 50,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35958,
    "c": 0.13953,
    "h": 275.3
  },
  "luminance": 0.04234
}

Semantic roles & 50–950 ramp

primary
#2C2F84
secondary
#B0AD5C
accent
#D54EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2C2F84

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

Preview Lab → · Contrast checker → · Palette generator →

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