#2D256D#2D256D

#2D256D is a dark, moderate blue. Relative luminance 0.030; OKLCH L 32.1% C 0.120 H 282.3°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#2D256D
RGBrgb(45, 37, 109)
HSLhsl(247, 49%, 29%)
HSVhsv(247, 66%, 43%)
CMYKcmyk(58.7%, 66.1%, 0%, 57.3%)
CIE-LABlab(19.98, 25.82, -40.80)
CIE-LCHlch(19.98, 48.29, 302.33°)
OKLaboklab(32.1% 0.0256 -0.1172)
OKLCHoklch(32.1% 0.12 282.3)
XYZxyz(4.5032, 2.9849, 14.8039)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D256D #656D25
analogous
#25416D #2D256D #51256D
triadic
#2D256D #6D2D25 #256D2D
tetradic
#2D256D #6D2541 #656D25 #256D51
square
#2D256D #6D2541 #656D25 #256D51
split-complementary
#2D256D #6D5125 #416D25
monochromatic
#090817 #1A153F #2D256D #40359B #584BC2

Accessibility & contrast

On white

13.15
#2D256D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2D256D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D256D
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D256D#FFFFFF#000000##FFFFFF
##2D256D1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#002E6C
Tritanopia (blue-blind)
#0D3745
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d256d;
/* rgb */ color: rgb(45, 37, 109);
/* oklch */ color: oklch(32.1% 0.120 282.3);
Tailwind
colors: {
  custom: {
    50: '#6d6097',
    500: '#2d256d',
    950: '#000000',
  },
}
SCSS
$custom: #2d256d;
$custom-light: #6d6097;
$custom-dark: #000000;
JSON
{
  "hex": "#2d256d",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 246.667,
    "s": 49.315,
    "l": 28.627
  },
  "oklch": {
    "l": 0.321,
    "c": 0.11995,
    "h": 282.3
  },
  "luminance": 0.02985
}

Semantic roles & 50–950 ramp

primary
#2D256D
secondary
#97A04E
accent
#D94FCA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2D256D

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

Preview Lab → · Contrast checker → · Palette generator →

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