#2D255A#2D255A

#2D255A is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.5% C 0.092 H 286.6°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#2D255A
RGBrgb(45, 37, 90)
HSLhsl(249, 42%, 25%)
HSVhsv(249, 59%, 35%)
CMYKcmyk(50%, 58.9%, 0%, 64.7%)
CIE-LABlab(18.45, 19.25, -30.80)
CIE-LCHlch(18.45, 36.32, 302.01°)
OKLaboklab(30.49% 0.0261 -0.0878)
OKLCHoklch(30.49% 0.092 286.6)
XYZxyz(3.5887, 2.6191, 9.9873)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D255A #525A25
analogous
#25375A #2D255A #48255A
triadic
#2D255A #5A2D25 #255A2D
tetradic
#2D255A #5A2537 #525A25 #255A48
square
#2D255A #5A2537 #525A25 #255A48
split-complementary
#2D255A #5A4825 #375A25
monochromatic
#0B0916 #17132F #2D255A #433785 #5849B1

Accessibility & contrast

On white

13.78
#2D255A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2D255A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D255A
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D255A#FFFFFF#000000##FFFFFF
##2D255A1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082E5C
Deuteranopia (green-blind)
#072B59
Tritanopia (blue-blind)
#1E313B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d255a;
/* rgb */ color: rgb(45, 37, 90);
/* oklch */ color: oklch(30.5% 0.092 286.6);
Tailwind
colors: {
  custom: {
    50: '#6a5f89',
    500: '#2d255a',
    950: '#000000',
  },
}
SCSS
$custom: #2d255a;
$custom-light: #6a5f89;
$custom-dark: #000000;
JSON
{
  "hex": "#2d255a",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 90
  },
  "hsl": {
    "h": 249.057,
    "s": 41.732,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30485,
    "c": 0.09158,
    "h": 286.6
  },
  "luminance": 0.02619
}

Semantic roles & 50–950 ramp

primary
#2D255A
secondary
#848D4D
accent
#D256BF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2D255A

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

Preview Lab → · Contrast checker → · Palette generator →

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