#2C256B#2C256B

#2C256B is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.8% C 0.117 H 282.0°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#2C256B
RGBrgb(44, 37, 107)
HSLhsl(246, 49%, 28%)
HSVhsv(246, 65%, 42%)
CMYKcmyk(58.9%, 65.4%, 0%, 58%)
CIE-LABlab(19.72, 24.93, -39.94)
CIE-LCHlch(19.72, 47.08, 301.97°)
OKLaboklab(31.83% 0.0243 -0.1147)
OKLCHoklch(31.83% 0.117 282)
XYZxyz(4.3533, 2.9199, 14.2413)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C256B #646B25
analogous
#25416B #2C256B #4F256B
triadic
#2C256B #6B2C25 #256B2C
tetradic
#2C256B #6B2541 #646B25 #256B4F
square
#2C256B #6B2541 #646B25 #256B4F
split-complementary
#2C256B #6B4F25 #416B25
monochromatic
#090817 #19153E #2C256B #3F3598 #564AC0

Accessibility & contrast

On white

13.26
#2C256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C256B
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C256B#FFFFFF#000000##FFFFFF
##2C256B1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#0D3644
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c256b;
/* rgb */ color: rgb(44, 37, 107);
/* oklch */ color: oklch(31.8% 0.117 282.0);
Tailwind
colors: {
  custom: {
    50: '#6c6096',
    500: '#2c256b',
    950: '#000000',
  },
}
SCSS
$custom: #2c256b;
$custom-light: #6c6096;
$custom-dark: #000000;
JSON
{
  "hex": "#2c256b",
  "rgb": {
    "r": 44,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 246,
    "s": 48.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31831,
    "c": 0.11722,
    "h": 282
  },
  "luminance": 0.0292
}

Semantic roles & 50–950 ramp

primary
#2C256B
secondary
#969E4E
accent
#D850CB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2C256B

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

Preview Lab → · Contrast checker → · Palette generator →

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