#2C256C#2C256C

#2C256C is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.9% C 0.119 H 281.8°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2C256C
RGBrgb(44, 37, 108)
HSLhsl(246, 49%, 28%)
HSVhsv(246, 66%, 42%)
CMYKcmyk(59.3%, 65.7%, 0%, 57.6%)
CIE-LABlab(19.81, 25.28, -40.45)
CIE-LCHlch(19.81, 47.70, 302.01°)
OKLaboklab(31.92% 0.0242 -0.1162)
OKLCHoklch(31.92% 0.119 281.8)
XYZxyz(4.4062, 2.9410, 14.5199)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C256C #656C25
analogous
#25416C #2C256C #4F256C
triadic
#2C256C #6C2C25 #256C2C
tetradic
#2C256C #6C2541 #656C25 #256C4F
square
#2C256C #6C2541 #656C25 #256C4F
split-complementary
#2C256C #6C4F25 #416C25
monochromatic
#090817 #19153E #2C256C #3F359A #564AC1

Accessibility & contrast

On white

13.22
#2C256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2C256C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C256C
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C256C#FFFFFF#000000##FFFFFF
##2C256C1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#002D6B
Tritanopia (blue-blind)
#0B3644
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c256c;
/* rgb */ color: rgb(44, 37, 108);
/* oklch */ color: oklch(31.9% 0.119 281.8);
Tailwind
colors: {
  custom: {
    50: '#6c6097',
    500: '#2c256c',
    950: '#000000',
  },
}
SCSS
$custom: #2c256c;
$custom-light: #6c6097;
$custom-dark: #000000;
JSON
{
  "hex": "#2c256c",
  "rgb": {
    "r": 44,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 245.915,
    "s": 48.966,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31921,
    "c": 0.11867,
    "h": 281.8
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#2C256C
secondary
#979F4E
accent
#D94FCB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2C256C

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

Preview Lab → · Contrast checker → · Palette generator →

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