#2D256B#2D256B

#2D256B is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.9% C 0.117 H 282.7°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2D256B
RGBrgb(45, 37, 107)
HSLhsl(247, 49%, 28%)
HSVhsv(247, 65%, 42%)
CMYKcmyk(57.9%, 65.4%, 0%, 58%)
CIE-LABlab(19.81, 25.13, -39.78)
CIE-LCHlch(19.81, 47.05, 302.28°)
OKLaboklab(31.92% 0.0257 -0.1142)
OKLCHoklch(31.92% 0.117 282.7)
XYZxyz(4.3968, 2.9423, 14.2433)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D256B #636B25
analogous
#25406B #2D256B #50256B
triadic
#2D256B #6B2D25 #256B2D
tetradic
#2D256B #6B2540 #636B25 #256B50
square
#2D256B #6B2540 #636B25 #256B50
split-complementary
#2D256B #6B5025 #406B25
monochromatic
#0A0817 #1A153E #2D256B #403598 #584AC0

Accessibility & contrast

On white

13.22
#2D256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D256B
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D256B#FFFFFF#000000##FFFFFF
##2D256B1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#103644
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d256b;
/* rgb */ color: rgb(45, 37, 107);
/* oklch */ color: oklch(31.9% 0.117 282.7);
Tailwind
colors: {
  custom: {
    50: '#6d6096',
    500: '#2d256b',
    950: '#000000',
  },
}
SCSS
$custom: #2d256b;
$custom-light: #6d6096;
$custom-dark: #000000;
JSON
{
  "hex": "#2d256b",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 246.857,
    "s": 48.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31921,
    "c": 0.11706,
    "h": 282.7
  },
  "luminance": 0.02943
}

Semantic roles & 50–950 ramp

primary
#2D256B
secondary
#959E4E
accent
#D850C9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2D256B

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

Preview Lab → · Contrast checker → · Palette generator →

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