#2C255C#2C255C

#2C255C is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.5% C 0.095 H 285.1°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#2C255C
RGBrgb(44, 37, 92)
HSLhsl(248, 43%, 25%)
HSVhsv(248, 60%, 36%)
CMYKcmyk(52.2%, 59.8%, 0%, 63.9%)
CIE-LABlab(18.50, 19.69, -32.05)
CIE-LCHlch(18.50, 37.62, 301.56°)
OKLaboklab(30.55% 0.0247 -0.0915)
OKLCHoklch(30.55% 0.095 285.1)
XYZxyz(3.6315, 2.6311, 10.4397)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C255C #555C25
analogous
#253A5C #2C255C #47255C
triadic
#2C255C #5C2C25 #255C2C
tetradic
#2C255C #5C253A #555C25 #255C47
square
#2C255C #5C253A #555C25 #255C47
split-complementary
#2C255C #5C4725 #3A5C25
monochromatic
#0A0916 #171330 #2C255C #413788 #5648B3

Accessibility & contrast

On white

13.76
#2C255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C255C
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C255C#FFFFFF#000000##FFFFFF
##2C255C1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052F5E
Deuteranopia (green-blind)
#032B5B
Tritanopia (blue-blind)
#1B313C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c255c;
/* rgb */ color: rgb(44, 37, 92);
/* oklch */ color: oklch(30.5% 0.095 285.1);
Tailwind
colors: {
  custom: {
    50: '#695f8b',
    500: '#2c255c',
    950: '#000000',
  },
}
SCSS
$custom: #2c255c;
$custom-light: #695f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c255c",
  "rgb": {
    "r": 44,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 247.636,
    "s": 42.636,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30549,
    "c": 0.09478,
    "h": 285.1
  },
  "luminance": 0.02631
}

Semantic roles & 50–950 ramp

primary
#2C255C
secondary
#878F4D
accent
#D255C3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2C255C

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

Preview Lab → · Contrast checker → · Palette generator →

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