#2D2495#2D2495

#2D2495 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.175 H 276.5°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2D2495
RGBrgb(45, 36, 149)
HSLhsl(245, 61%, 36%)
HSVhsv(245, 76%, 58%)
CMYKcmyk(69.8%, 75.8%, 0%, 41.6%)
CIE-LABlab(23.63, 40.09, -60.08)
CIE-LCHlch(23.63, 72.23, 303.72°)
OKLaboklab(35.9% 0.0198 -0.1736)
OKLCHoklch(35.9% 0.175 276.5)
XYZxyz(7.1361, 3.9889, 28.8218)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2495 #8C9524
analogous
#245495 #2D2495 #662495
triadic
#2D2495 #952D24 #24952D
tetradic
#2D2495 #952454 #8C9524 #249566
square
#2D2495 #952454 #8C9524 #249566
split-complementary
#2D2495 #956624 #549524
monochromatic
#0F0C32 #1E1864 #2D2495 #3C30C6 #665CD8

Accessibility & contrast

On white

11.68
#2D2495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2D2495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2495
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2495#FFFFFF#000000##FFFFFF
##2D24951.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d2495;
/* rgb */ color: rgb(45, 36, 149);
/* oklch */ color: oklch(35.9% 0.175 276.5);
Tailwind
colors: {
  custom: {
    50: '#7661b5',
    500: '#2d2495',
    950: '#000000',
  },
}
SCSS
$custom: #2d2495;
$custom-light: #7661b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2495",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 244.779,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35903,
    "c": 0.17475,
    "h": 276.5
  },
  "luminance": 0.0399
}

Semantic roles & 50–950 ramp

primary
#2D2495
secondary
#B4BC59
accent
#E444D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2495

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

Preview Lab → · Contrast checker → · Palette generator →

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