#2D255E#2D255E

#2D255E is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.8% C 0.098 H 285.5°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#2D255E
RGBrgb(45, 37, 94)
HSLhsl(248, 44%, 26%)
HSVhsv(248, 61%, 37%)
CMYKcmyk(52.1%, 60.6%, 0%, 63.1%)
CIE-LABlab(18.75, 20.62, -32.97)
CIE-LCHlch(18.75, 38.89, 302.03°)
OKLaboklab(30.81% 0.0262 -0.0942)
OKLCHoklch(30.81% 0.098 285.5)
XYZxyz(3.7635, 2.6890, 10.9082)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D255E #565E25
analogous
#25395E #2D255E #49255E
triadic
#2D255E #5E2D25 #255E2D
tetradic
#2D255E #5E2539 #565E25 #255E49
square
#2D255E #5E2539 #565E25 #255E49
split-complementary
#2D255E #5E4925 #395E25
monochromatic
#0B0916 #181432 #2D255E #42368A #5748B6

Accessibility & contrast

On white

13.66
#2D255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D255E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D255E
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D255E#FFFFFF#000000##FFFFFF
##2D255E1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022F60
Deuteranopia (green-blind)
#002C5D
Tritanopia (blue-blind)
#1C323D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d255e;
/* rgb */ color: rgb(45, 37, 94);
/* oklch */ color: oklch(30.8% 0.098 285.5);
Tailwind
colors: {
  custom: {
    50: '#6a5f8c',
    500: '#2d255e',
    950: '#000000',
  },
}
SCSS
$custom: #2d255e;
$custom-light: #6a5f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d255e",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 248.421,
    "s": 43.511,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30808,
    "c": 0.09773,
    "h": 285.5
  },
  "luminance": 0.02689
}

Semantic roles & 50–950 ramp

primary
#2D255E
secondary
#88914D
accent
#D355C1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D255E

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

Preview Lab → · Contrast checker → · Palette generator →

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