#2C237E#2C237E

#2C237E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.146 H 279.3°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#2C237E
RGBrgb(44, 35, 126)
HSLhsl(246, 57%, 32%)
HSVhsv(246, 72%, 49%)
CMYKcmyk(65.1%, 72.2%, 0%, 50.6%)
CIE-LABlab(20.99, 32.81, -50.05)
CIE-LCHlch(20.99, 59.85, 303.25°)
OKLaboklab(33.29% 0.0237 -0.1444)
OKLCHoklch(33.29% 0.146 279.3)
XYZxyz(5.4044, 3.2435, 20.0759)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C237E #757E23
analogous
#23487E #2C237E #5A237E
triadic
#2C237E #7E2C23 #237E2C
tetradic
#2C237E #7E2348 #757E23 #237E5A
square
#2C237E #7E2348 #757E23 #237E5A
split-complementary
#2C237E #7E5A23 #487E23
monochromatic
#0B081E #1B164E #2C237E #3D30AE #5A4ECE

Accessibility & contrast

On white

12.74
#2C237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2C237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C237E
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C237E#FFFFFF#000000##FFFFFF
##2C237E1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c237e;
/* rgb */ color: rgb(44, 35, 126);
/* oklch */ color: oklch(33.3% 0.146 279.3);
Tailwind
colors: {
  custom: {
    50: '#705fa4',
    500: '#2c237e',
    950: '#000000',
  },
}
SCSS
$custom: #2c237e;
$custom-light: #705fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c237e",
  "rgb": {
    "r": 44,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 245.934,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33294,
    "c": 0.14629,
    "h": 279.3
  },
  "luminance": 0.03244
}

Semantic roles & 50–950 ramp

primary
#2C237E
secondary
#A7B04C
accent
#E048D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C237E

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

Preview Lab → · Contrast checker → · Palette generator →

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