#2D255C#2D255C

#2D255C is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.6% C 0.095 H 286.0°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#2D255C
RGBrgb(45, 37, 92)
HSLhsl(249, 43%, 25%)
HSVhsv(249, 60%, 36%)
CMYKcmyk(51.1%, 59.8%, 0%, 63.9%)
CIE-LABlab(18.60, 19.94, -31.89)
CIE-LCHlch(18.60, 37.61, 302.01°)
OKLaboklab(30.65% 0.0262 -0.091)
OKLCHoklch(30.65% 0.095 286)
XYZxyz(3.6750, 2.6536, 10.4417)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D255C #545C25
analogous
#25385C #2D255C #48255C
triadic
#2D255C #5C2D25 #255C2D
tetradic
#2D255C #5C2538 #545C25 #255C48
square
#2D255C #5C2538 #545C25 #255C48
split-complementary
#2D255C #5C4825 #385C25
monochromatic
#0B0916 #181330 #2D255C #423788 #5848B3

Accessibility & contrast

On white

13.72
#2D255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D255C
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D255C#FFFFFF#000000##FFFFFF
##2D255C1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052F5E
Deuteranopia (green-blind)
#042C5B
Tritanopia (blue-blind)
#1D313C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d255c;
/* rgb */ color: rgb(45, 37, 92);
/* oklch */ color: oklch(30.6% 0.095 286.0);
Tailwind
colors: {
  custom: {
    50: '#6a5f8b',
    500: '#2d255c',
    950: '#000000',
  },
}
SCSS
$custom: #2d255c;
$custom-light: #6a5f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d255c",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 248.727,
    "s": 42.636,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30645,
    "c": 0.09467,
    "h": 286
  },
  "luminance": 0.02654
}

Semantic roles & 50–950 ramp

primary
#2D255C
secondary
#868F4D
accent
#D255C0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D255C

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

Preview Lab → · Contrast checker → · Palette generator →

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