#2D2497#2D2497

#2D2497 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.177 H 276.3°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#2D2497
RGBrgb(45, 36, 151)
HSLhsl(245, 61%, 37%)
HSVhsv(245, 76%, 59%)
CMYKcmyk(70.2%, 76.2%, 0%, 40.8%)
CIE-LABlab(23.85, 40.75, -60.96)
CIE-LCHlch(23.85, 73.33, 303.76°)
OKLaboklab(36.12% 0.0193 -0.1762)
OKLCHoklch(36.12% 0.177 276.3)
XYZxyz(7.2971, 4.0533, 29.6700)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2497 #8E9724
analogous
#245597 #2D2497 #672497
triadic
#2D2497 #972D24 #24972D
tetradic
#2D2497 #972455 #8E9724 #249767
square
#2D2497 #972455 #8E9724 #249767
split-complementary
#2D2497 #976724 #559724
monochromatic
#100C34 #1E1866 #2D2497 #3C30C8 #675DD8

Accessibility & contrast

On white

11.60
#2D2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2D2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2497
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2497#FFFFFF#000000##FFFFFF
##2D24971.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d2497;
/* rgb */ color: rgb(45, 36, 151);
/* oklch */ color: oklch(36.1% 0.177 276.3);
Tailwind
colors: {
  custom: {
    50: '#7661b7',
    500: '#2d2497',
    950: '#000000',
  },
}
SCSS
$custom: #2d2497;
$custom-light: #7661b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2497",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 244.696,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36116,
    "c": 0.17726,
    "h": 276.3
  },
  "luminance": 0.04054
}

Semantic roles & 50–950 ramp

primary
#2D2497
secondary
#B5BD5A
accent
#E543D8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2497

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

Preview Lab → · Contrast checker → · Palette generator →

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