#2C2E78#2C2E78

#2C2E78 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.124 H 276.7°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#2C2E78
RGBrgb(44, 46, 120)
HSLhsl(238, 46%, 32%)
HSVhsv(238, 63%, 47%)
CMYKcmyk(63.3%, 61.7%, 0%, 52.9%)
CIE-LABlab(23.15, 23.51, -42.71)
CIE-LCHlch(23.15, 48.76, 298.83°)
OKLaboklab(34.7% 0.0143 -0.1228)
OKLCHoklch(34.7% 0.124 276.7)
XYZxyz(5.4048, 3.8451, 18.2230)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2E78 #78762C
analogous
#2C5478 #2C2E78 #502C78
triadic
#2C2E78 #782C2E #2E782C
tetradic
#2C2E78 #782C54 #78762C #2C7850
square
#2C2E78 #782C54 #78762C #2C7850
split-complementary
#2C2E78 #78502C #54782C
monochromatic
#0B0C1E #1C1D4B #2C2E78 #3C3FA5 #5B5EC3

Accessibility & contrast

On white

11.87
#2C2E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2C2E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2E78
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2E78#FFFFFF#000000##FFFFFF
##2C2E781.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c2e78;
/* rgb */ color: rgb(44, 46, 120);
/* oklch */ color: oklch(34.7% 0.124 276.7);
Tailwind
colors: {
  custom: {
    50: '#6e66a0',
    500: '#2c2e78',
    950: '#000000',
  },
}
SCSS
$custom: #2c2e78;
$custom-light: #6e66a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2e78",
  "rgb": {
    "r": 44,
    "g": 46,
    "b": 120
  },
  "hsl": {
    "h": 238.421,
    "s": 46.341,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34699,
    "c": 0.12362,
    "h": 276.7
  },
  "luminance": 0.03846
}

Semantic roles & 50–950 ramp

primary
#2C2E78
secondary
#A9A757
accent
#D352D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2C2E78

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

Preview Lab → · Contrast checker → · Palette generator →

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