#2C2F78#2C2F78

#2C2F78 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.122 H 276.2°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#2C2F78
RGBrgb(44, 47, 120)
HSLhsl(238, 46%, 32%)
HSVhsv(238, 63%, 47%)
CMYKcmyk(63.3%, 60.8%, 0%, 52.9%)
CIE-LABlab(23.42, 22.83, -42.28)
CIE-LCHlch(23.42, 48.05, 298.37°)
OKLaboklab(34.9% 0.0133 -0.1215)
OKLCHoklch(34.9% 0.122 276.2)
XYZxyz(5.4443, 3.9241, 18.2362)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F78 #78752C
analogous
#2C5578 #2C2F78 #4F2C78
triadic
#2C2F78 #782C2F #2F782C
tetradic
#2C2F78 #782C55 #78752C #2C784F
square
#2C2F78 #782C55 #78752C #2C784F
split-complementary
#2C2F78 #784F2C #55782C
monochromatic
#0B0C1E #1C1D4B #2C2F78 #3C41A5 #5B5FC3

Accessibility & contrast

On white

11.76
#2C2F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2F78
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F78#FFFFFF#000000##FFFFFF
##2C2F781.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7A
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c2f78;
/* rgb */ color: rgb(44, 47, 120);
/* oklch */ color: oklch(34.9% 0.122 276.2);
Tailwind
colors: {
  custom: {
    50: '#6e67a0',
    500: '#2c2f78',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f78;
$custom-light: #6e67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f78",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 237.632,
    "s": 46.341,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34896,
    "c": 0.12224,
    "h": 276.2
  },
  "luminance": 0.03925
}

Semantic roles & 50–950 ramp

primary
#2C2F78
secondary
#A9A657
accent
#D152D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2C2F78

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

Preview Lab → · Contrast checker → · Palette generator →

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