#2C256A#2C256A

#2C256A is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.7% C 0.116 H 282.1°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#2C256A
RGBrgb(44, 37, 106)
HSLhsl(246, 48%, 28%)
HSVhsv(246, 65%, 42%)
CMYKcmyk(58.5%, 65.1%, 0%, 58.4%)
CIE-LABlab(19.63, 24.58, -39.42)
CIE-LCHlch(19.63, 46.46, 301.94°)
OKLaboklab(31.74% 0.0244 -0.1132)
OKLCHoklch(31.74% 0.116 282.1)
XYZxyz(4.3010, 2.8990, 13.9658)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C256A #636A25
analogous
#25406A #2C256A #4E256A
triadic
#2C256A #6A2C25 #256A2C
tetradic
#2C256A #6A2540 #636A25 #256A4E
square
#2C256A #6A2540 #636A25 #256A4E
split-complementary
#2C256A #6A4E25 #406A25
monochromatic
#090817 #19153D #2C256A #3F3597 #564AC0

Accessibility & contrast

On white

13.29
#2C256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C256A
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C256A#FFFFFF#000000##FFFFFF
##2C256A1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#002D69
Tritanopia (blue-blind)
#0E3643
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c256a;
/* rgb */ color: rgb(44, 37, 106);
/* oklch */ color: oklch(31.7% 0.116 282.1);
Tailwind
colors: {
  custom: {
    50: '#6c6095',
    500: '#2c256a',
    950: '#000000',
  },
}
SCSS
$custom: #2c256a;
$custom-light: #6c6095;
$custom-dark: #000000;
JSON
{
  "hex": "#2c256a",
  "rgb": {
    "r": 44,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 246.087,
    "s": 48.252,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31742,
    "c": 0.11577,
    "h": 282.1
  },
  "luminance": 0.02899
}

Semantic roles & 50–950 ramp

primary
#2C256A
secondary
#959D4E
accent
#D850CA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2C256A

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

Preview Lab → · Contrast checker → · Palette generator →

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