#2C237C#2C237C

#2C237C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.144 H 279.6°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#2C237C
RGBrgb(44, 35, 124)
HSLhsl(246, 56%, 31%)
HSVhsv(246, 72%, 49%)
CMYKcmyk(64.5%, 71.8%, 0%, 51.4%)
CIE-LABlab(20.80, 32.13, -49.10)
CIE-LCHlch(20.80, 58.68, 303.20°)
OKLaboklab(33.09% 0.024 -0.1416)
OKLCHoklch(33.09% 0.144 279.6)
XYZxyz(5.2767, 3.1924, 19.4030)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C237C #737C23
analogous
#23467C #2C237C #58237C
triadic
#2C237C #7C2C23 #237C2C
tetradic
#2C237C #7C2346 #737C23 #237C58
square
#2C237C #7C2346 #737C23 #237C58
split-complementary
#2C237C #7C5823 #467C23
monochromatic
#0A081D #1B164C #2C237C #3D30AC #5A4DCD

Accessibility & contrast

On white

12.82
#2C237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2C237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C237C
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C237C#FFFFFF#000000##FFFFFF
##2C237C1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c237c;
/* rgb */ color: rgb(44, 35, 124);
/* oklch */ color: oklch(33.1% 0.144 279.6);
Tailwind
colors: {
  custom: {
    50: '#705fa3',
    500: '#2c237c',
    950: '#000000',
  },
}
SCSS
$custom: #2c237c;
$custom-light: #705fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c237c",
  "rgb": {
    "r": 44,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 246.067,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33094,
    "c": 0.14361,
    "h": 279.6
  },
  "luminance": 0.03193
}

Semantic roles & 50–950 ramp

primary
#2C237C
secondary
#A5AF4C
accent
#DF49D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C237C

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

Preview Lab → · Contrast checker → · Palette generator →

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