#2C2E71#2C2E71

#2C2E71 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.1% C 0.113 H 277.3°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#2C2E71
RGBrgb(44, 46, 113)
HSLhsl(238, 44%, 31%)
HSVhsv(238, 61%, 44%)
CMYKcmyk(61.1%, 59.3%, 0%, 55.7%)
CIE-LABlab(22.59, 20.96, -39.15)
CIE-LCHlch(22.59, 44.41, 298.16°)
OKLaboklab(34.1% 0.0143 -0.1123)
OKLCHoklch(34.1% 0.113 277.3)
XYZxyz(4.9954, 3.6814, 16.0669)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2E71 #716F2C
analogous
#2C5071 #2C2E71 #4C2C71
triadic
#2C2E71 #712C2E #2E712C
tetradic
#2C2E71 #712C50 #716F2C #2C714C
square
#2C2E71 #712C50 #716F2C #2C714C
split-complementary
#2C2E71 #714C2C #50712C
monochromatic
#0A0A19 #1B1C45 #2C2E71 #3D409D #595CBE

Accessibility & contrast

On white

12.09
#2C2E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2C2E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2E71
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2E71#FFFFFF#000000##FFFFFF
##2C2E711.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c2e71;
/* rgb */ color: rgb(44, 46, 113);
/* oklch */ color: oklch(34.1% 0.113 277.3);
Tailwind
colors: {
  custom: {
    50: '#6d669a',
    500: '#2c2e71',
    950: '#000000',
  },
}
SCSS
$custom: #2c2e71;
$custom-light: #6d669a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2e71",
  "rgb": {
    "r": 44,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 238.261,
    "s": 43.949,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34103,
    "c": 0.11323,
    "h": 277.3
  },
  "luminance": 0.03682
}

Semantic roles & 50–950 ramp

primary
#2C2E71
secondary
#A3A056
accent
#D054D4
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2C2E71

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

Preview Lab → · Contrast checker → · Palette generator →

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