#2D255F#2D255F

#2D255F is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.9% C 0.099 H 285.3°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#2D255F
RGBrgb(45, 37, 95)
HSLhsl(248, 44%, 26%)
HSVhsv(248, 61%, 37%)
CMYKcmyk(52.6%, 61.1%, 0%, 62.7%)
CIE-LABlab(18.83, 20.97, -33.51)
CIE-LCHlch(18.83, 39.53, 302.04°)
OKLaboklab(30.89% 0.0262 -0.0957)
OKLCHoklch(30.89% 0.099 285.3)
XYZxyz(3.8087, 2.7071, 11.1461)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D255F #575F25
analogous
#253A5F #2D255F #4A255F
triadic
#2D255F #5F2D25 #255F2D
tetradic
#2D255F #5F253A #575F25 #255F4A
square
#2D255F #5F253A #575F25 #255F4A
split-complementary
#2D255F #5F4A25 #3A5F25
monochromatic
#0A0916 #181433 #2D255F #42368B #5747B7

Accessibility & contrast

On white

13.62
#2D255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D255F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D255F
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D255F#FFFFFF#000000##FFFFFF
##2D255F1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#002C5E
Tritanopia (blue-blind)
#1B323E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d255f;
/* rgb */ color: rgb(45, 37, 95);
/* oklch */ color: oklch(30.9% 0.099 285.3);
Tailwind
colors: {
  custom: {
    50: '#6a5f8d',
    500: '#2d255f',
    950: '#000000',
  },
}
SCSS
$custom: #2d255f;
$custom-light: #6a5f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d255f",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 248.276,
    "s": 43.939,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3089,
    "c": 0.09925,
    "h": 285.3
  },
  "luminance": 0.02707
}

Semantic roles & 50–950 ramp

primary
#2D255F
secondary
#89924D
accent
#D454C2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D255F

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

Preview Lab → · Contrast checker → · Palette generator →

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