#2C255D#2C255D

#2C255D is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.6% C 0.096 H 284.9°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#2C255D
RGBrgb(44, 37, 93)
HSLhsl(248, 43%, 25%)
HSVhsv(248, 60%, 36%)
CMYKcmyk(52.7%, 60.2%, 0%, 63.5%)
CIE-LABlab(18.58, 20.04, -32.59)
CIE-LCHlch(18.58, 38.26, 301.58°)
OKLaboklab(30.63% 0.0247 -0.0931)
OKLCHoklch(30.63% 0.096 284.9)
XYZxyz(3.6755, 2.6487, 10.6714)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C255D #565D25
analogous
#253A5D #2C255D #48255D
triadic
#2C255D #5D2C25 #255D2C
tetradic
#2C255D #5D253A #565D25 #255D48
square
#2C255D #5D253A #565D25 #255D48
split-complementary
#2C255D #5D4825 #3A5D25
monochromatic
#0A0916 #171431 #2C255D #413689 #5548B5

Accessibility & contrast

On white

13.73
#2C255D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2C255D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C255D
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C255D#FFFFFF#000000##FFFFFF
##2C255D1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032F5F
Deuteranopia (green-blind)
#012C5C
Tritanopia (blue-blind)
#1A323D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c255d;
/* rgb */ color: rgb(44, 37, 93);
/* oklch */ color: oklch(30.6% 0.096 284.9);
Tailwind
colors: {
  custom: {
    50: '#6a5f8b',
    500: '#2c255d',
    950: '#000000',
  },
}
SCSS
$custom: #2c255d;
$custom-light: #6a5f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c255d",
  "rgb": {
    "r": 44,
    "g": 37,
    "b": 93
  },
  "hsl": {
    "h": 247.5,
    "s": 43.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3063,
    "c": 0.09632,
    "h": 284.9
  },
  "luminance": 0.02649
}

Semantic roles & 50–950 ramp

primary
#2C255D
secondary
#88904D
accent
#D355C3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2C255D

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

Preview Lab → · Contrast checker → · Palette generator →

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