#2D255D#2D255D

#2D255D is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.7% C 0.096 H 285.8°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#2D255D
RGBrgb(45, 37, 93)
HSLhsl(249, 43%, 25%)
HSVhsv(249, 60%, 36%)
CMYKcmyk(51.6%, 60.2%, 0%, 63.5%)
CIE-LABlab(18.68, 20.28, -32.43)
CIE-LCHlch(18.68, 38.25, 302.02°)
OKLaboklab(30.73% 0.0262 -0.0926)
OKLCHoklch(30.73% 0.096 285.8)
XYZxyz(3.7190, 2.6712, 10.6734)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D255D #555D25
analogous
#25395D #2D255D #49255D
triadic
#2D255D #5D2D25 #255D2D
tetradic
#2D255D #5D2539 #555D25 #255D49
square
#2D255D #5D2539 #555D25 #255D49
split-complementary
#2D255D #5D4925 #395D25
monochromatic
#0B0916 #181431 #2D255D #423689 #5748B5

Accessibility & contrast

On white

13.69
#2D255D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D255D
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D255D#FFFFFF#000000##FFFFFF
##2D255D1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d255d;
/* rgb */ color: rgb(45, 37, 93);
/* oklch */ color: oklch(30.7% 0.096 285.8);
Tailwind
colors: {
  custom: {
    50: '#6a5f8b',
    500: '#2d255d',
    950: '#000000',
  },
}
SCSS
$custom: #2d255d;
$custom-light: #6a5f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d255d",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 93
  },
  "hsl": {
    "h": 248.571,
    "s": 43.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30726,
    "c": 0.0962,
    "h": 285.8
  },
  "luminance": 0.02671
}

Semantic roles & 50–950 ramp

primary
#2D255D
secondary
#87904D
accent
#D355C1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D255D

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

Preview Lab → · Contrast checker → · Palette generator →

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