#2D256C#2D256C

#2D256C is a dark, moderate blue. Relative luminance 0.030; OKLCH L 32.0% C 0.119 H 282.5°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#2D256C
RGBrgb(45, 37, 108)
HSLhsl(247, 49%, 28%)
HSVhsv(247, 66%, 42%)
CMYKcmyk(58.3%, 65.7%, 0%, 57.6%)
CIE-LABlab(19.90, 25.48, -40.29)
CIE-LCHlch(19.90, 47.67, 302.30°)
OKLaboklab(32.01% 0.0256 -0.1157)
OKLCHoklch(32.01% 0.119 282.5)
XYZxyz(4.4497, 2.9635, 14.5220)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D256C #646C25
analogous
#25406C #2D256C #50256C
triadic
#2D256C #6C2D25 #256C2D
tetradic
#2D256C #6C2540 #646C25 #256C50
square
#2D256C #6C2540 #646C25 #256C50
split-complementary
#2D256C #6C5025 #406C25
monochromatic
#090817 #1A153E #2D256C #40359A #584AC1

Accessibility & contrast

On white

13.18
#2D256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2D256C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D256C
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D256C#FFFFFF#000000##FFFFFF
##2D256C1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#002E6B
Tritanopia (blue-blind)
#0F3644
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d256c;
/* rgb */ color: rgb(45, 37, 108);
/* oklch */ color: oklch(32.0% 0.119 282.5);
Tailwind
colors: {
  custom: {
    50: '#6d6097',
    500: '#2d256c',
    950: '#000000',
  },
}
SCSS
$custom: #2d256c;
$custom-light: #6d6097;
$custom-dark: #000000;
JSON
{
  "hex": "#2d256c",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 246.761,
    "s": 48.966,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3201,
    "c": 0.11851,
    "h": 282.5
  },
  "luminance": 0.02964
}

Semantic roles & 50–950 ramp

primary
#2D256C
secondary
#969F4E
accent
#D94FC9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2D256C

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

Preview Lab → · Contrast checker → · Palette generator →

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