#2D256A#2D256A

#2D256A is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.8% C 0.116 H 282.9°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#2D256A
RGBrgb(45, 37, 106)
HSLhsl(247, 48%, 28%)
HSVhsv(247, 65%, 42%)
CMYKcmyk(57.5%, 65.1%, 0%, 58.4%)
CIE-LABlab(19.73, 24.78, -39.27)
CIE-LCHlch(19.73, 46.44, 302.25°)
OKLaboklab(31.83% 0.0258 -0.1127)
OKLCHoklch(31.83% 0.116 282.9)
XYZxyz(4.3445, 2.9214, 13.9678)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D256A #626A25
analogous
#253F6A #2D256A #4F256A
triadic
#2D256A #6A2D25 #256A2D
tetradic
#2D256A #6A253F #626A25 #256A4F
square
#2D256A #6A253F #626A25 #256A4F
split-complementary
#2D256A #6A4F25 #3F6A25
monochromatic
#0A0817 #1A153D #2D256A #403597 #574AC0

Accessibility & contrast

On white

13.25
#2D256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2D256A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D256A
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D256A#FFFFFF#000000##FFFFFF
##2D256A1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#002D69
Tritanopia (blue-blind)
#113643
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d256a;
/* rgb */ color: rgb(45, 37, 106);
/* oklch */ color: oklch(31.8% 0.116 282.9);
Tailwind
colors: {
  custom: {
    50: '#6c6095',
    500: '#2d256a',
    950: '#000000',
  },
}
SCSS
$custom: #2d256a;
$custom-light: #6c6095;
$custom-dark: #000000;
JSON
{
  "hex": "#2d256a",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 246.957,
    "s": 48.252,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31832,
    "c": 0.11561,
    "h": 282.9
  },
  "luminance": 0.02922
}

Semantic roles & 50–950 ramp

primary
#2D256A
secondary
#949D4E
accent
#D850C8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2D256A

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

Preview Lab → · Contrast checker → · Palette generator →

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