#2D256F#2D256F

#2D256F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.123 H 281.9°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#2D256F
RGBrgb(45, 37, 111)
HSLhsl(246, 50%, 29%)
HSVhsv(246, 67%, 44%)
CMYKcmyk(59.5%, 66.7%, 0%, 56.5%)
CIE-LABlab(20.16, 26.52, -41.81)
CIE-LCHlch(20.16, 49.51, 302.39°)
OKLaboklab(32.28% 0.0254 -0.1202)
OKLCHoklch(32.28% 0.123 281.9)
XYZxyz(4.6121, 3.0284, 15.3774)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D256F #676F25
analogous
#25426F #2D256F #52256F
triadic
#2D256F #6F2D25 #256F2D
tetradic
#2D256F #6F2542 #676F25 #256F52
square
#2D256F #6F2542 #676F25 #256F52
split-complementary
#2D256F #6F5225 #426F25
monochromatic
#090817 #1A1641 #2D256F #40349D #584BC3

Accessibility & contrast

On white

13.08
#2D256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2D256F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D256F
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D256F#FFFFFF#000000##FFFFFF
##2D256F1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#0A3746
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d256f;
/* rgb */ color: rgb(45, 37, 111);
/* oklch */ color: oklch(32.3% 0.123 281.9);
Tailwind
colors: {
  custom: {
    50: '#6d6099',
    500: '#2d256f',
    950: '#000000',
  },
}
SCSS
$custom: #2d256f;
$custom-light: #6d6099;
$custom-dark: #000000;
JSON
{
  "hex": "#2d256f",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 246.486,
    "s": 50,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32281,
    "c": 0.12282,
    "h": 281.9
  },
  "luminance": 0.03029
}

Semantic roles & 50–950 ramp

primary
#2D256F
secondary
#99A24E
accent
#DA4ECA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D256F

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

Preview Lab → · Contrast checker → · Palette generator →

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