#2C236F#2C236F

#2C236F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.126 H 281.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#2C236F
RGBrgb(44, 35, 111)
HSLhsl(247, 52%, 29%)
HSVhsv(247, 68%, 44%)
CMYKcmyk(60.4%, 68.5%, 0%, 56.5%)
CIE-LABlab(19.58, 27.64, -42.76)
CIE-LCHlch(19.58, 50.92, 302.88°)
OKLaboklab(31.84% 0.026 -0.123)
OKLCHoklch(31.84% 0.126 281.9)
XYZxyz(4.5081, 2.8849, 15.3551)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C236F #666F23
analogous
#23406F #2C236F #52236F
triadic
#2C236F #6F2C23 #236F2C
tetradic
#2C236F #6F2340 #666F23 #236F52
square
#2C236F #6F2340 #666F23 #236F52
split-complementary
#2C236F #6F5223 #406F23
monochromatic
#090717 #1A1440 #2C236F #3E329E #5647C5

Accessibility & contrast

On white

13.32
#2C236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2C236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C236F
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C236F#FFFFFF#000000##FFFFFF
##2C236F1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#063645
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c236f;
/* rgb */ color: rgb(44, 35, 111);
/* oklch */ color: oklch(31.8% 0.126 281.9);
Tailwind
colors: {
  custom: {
    50: '#6d5e99',
    500: '#2c236f',
    950: '#000000',
  },
}
SCSS
$custom: #2c236f;
$custom-light: #6d5e99;
$custom-dark: #000000;
JSON
{
  "hex": "#2c236f",
  "rgb": {
    "r": 44,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 247.105,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31837,
    "c": 0.12571,
    "h": 281.9
  },
  "luminance": 0.02885
}

Semantic roles & 50–950 ramp

primary
#2C236F
secondary
#98A24C
accent
#DB4CCB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2C236F

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

Preview Lab → · Contrast checker → · Palette generator →

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