#2C255B#2C255B

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

Color values

HEX#2C255B
RGBrgb(44, 37, 91)
HSLhsl(248, 42%, 25%)
HSVhsv(248, 59%, 36%)
CMYKcmyk(51.6%, 59.3%, 0%, 64.3%)
CIE-LABlab(18.43, 19.34, -31.51)
CIE-LCHlch(18.43, 36.97, 301.54°)
OKLaboklab(30.47% 0.0247 -0.0899)
OKLCHoklch(30.47% 0.093 285.3)
XYZxyz(3.5880, 2.6138, 10.2110)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C255B #545B25
analogous
#25395B #2C255B #47255B
triadic
#2C255B #5B2C25 #255B2C
tetradic
#2C255B #5B2539 #545B25 #255B47
square
#2C255B #5B2539 #545B25 #255B47
split-complementary
#2C255B #5B4725 #395B25
monochromatic
#0B0916 #17132F #2C255B #413787 #5648B2

Accessibility & contrast

On white

13.79
#2C255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2C255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C255B
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C255B#FFFFFF#000000##FFFFFF
##2C255B1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062E5D
Deuteranopia (green-blind)
#042B5A
Tritanopia (blue-blind)
#1C313C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c255b;
/* rgb */ color: rgb(44, 37, 91);
/* oklch */ color: oklch(30.5% 0.093 285.3);
Tailwind
colors: {
  custom: {
    50: '#695f8a',
    500: '#2c255b',
    950: '#000000',
  },
}
SCSS
$custom: #2c255b;
$custom-light: #695f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c255b",
  "rgb": {
    "r": 44,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 247.778,
    "s": 42.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30468,
    "c": 0.09323,
    "h": 285.3
  },
  "luminance": 0.02614
}

Semantic roles & 50–950 ramp

primary
#2C255B
secondary
#868E4D
accent
#D256C2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2C255B

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

Preview Lab → · Contrast checker → · Palette generator →

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