#2D255B#2D255B

#2D255B is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.6% C 0.093 H 286.3°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#2D255B
RGBrgb(45, 37, 91)
HSLhsl(249, 42%, 25%)
HSVhsv(249, 59%, 36%)
CMYKcmyk(50.5%, 59.3%, 0%, 64.3%)
CIE-LABlab(18.52, 19.59, -31.35)
CIE-LCHlch(18.52, 36.97, 302.01°)
OKLaboklab(30.57% 0.0261 -0.0894)
OKLCHoklch(30.57% 0.093 286.3)
XYZxyz(3.6315, 2.6362, 10.2130)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D255B #535B25
analogous
#25385B #2D255B #48255B
triadic
#2D255B #5B2D25 #255B2D
tetradic
#2D255B #5B2538 #535B25 #255B48
square
#2D255B #5B2538 #535B25 #255B48
split-complementary
#2D255B #5B4825 #385B25
monochromatic
#0B0916 #17132F #2D255B #433787 #5848B2

Accessibility & contrast

On white

13.75
#2D255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2D255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D255B
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D255B#FFFFFF#000000##FFFFFF
##2D255B1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072F5D
Deuteranopia (green-blind)
#062C5A
Tritanopia (blue-blind)
#1E313C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d255b;
/* rgb */ color: rgb(45, 37, 91);
/* oklch */ color: oklch(30.6% 0.093 286.3);
Tailwind
colors: {
  custom: {
    50: '#6a5f8a',
    500: '#2d255b',
    950: '#000000',
  },
}
SCSS
$custom: #2d255b;
$custom-light: #6a5f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d255b",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 248.889,
    "s": 42.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30565,
    "c": 0.09313,
    "h": 286.3
  },
  "luminance": 0.02636
}

Semantic roles & 50–950 ramp

primary
#2D255B
secondary
#858E4D
accent
#D256C0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D255B

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

Preview Lab → · Contrast checker → · Palette generator →

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