#2C237A#2C237A

#2C237A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.141 H 280.0°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#2C237A
RGBrgb(44, 35, 122)
HSLhsl(246, 55%, 31%)
HSVhsv(246, 71%, 48%)
CMYKcmyk(63.9%, 71.3%, 0%, 52.2%)
CIE-LABlab(20.61, 31.44, -48.15)
CIE-LCHlch(20.61, 57.50, 303.15°)
OKLaboklab(32.9% 0.0244 -0.1388)
OKLCHoklch(32.9% 0.141 280)
XYZxyz(5.1515, 3.1423, 18.7436)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C237A #717A23
analogous
#23457A #2C237A #57237A
triadic
#2C237A #7A2C23 #237A2C
tetradic
#2C237A #7A2345 #717A23 #237A57
square
#2C237A #7A2345 #717A23 #237A57
split-complementary
#2C237A #7A5723 #457A23
monochromatic
#0A081B #1B154A #2C237A #3D31AA #594CCC

Accessibility & contrast

On white

12.89
#2C237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2C237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C237A
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C237A#FFFFFF#000000##FFFFFF
##2C237A1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c237a;
/* rgb */ color: rgb(44, 35, 122);
/* oklch */ color: oklch(32.9% 0.141 280.0);
Tailwind
colors: {
  custom: {
    50: '#6f5fa1',
    500: '#2c237a',
    950: '#000000',
  },
}
SCSS
$custom: #2c237a;
$custom-light: #6f5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c237a",
  "rgb": {
    "r": 44,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 246.207,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32896,
    "c": 0.1409,
    "h": 280
  },
  "luminance": 0.03143
}

Semantic roles & 50–950 ramp

primary
#2C237A
secondary
#A3AD4C
accent
#DF49CF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C237A

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

Preview Lab → · Contrast checker → · Palette generator →

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