#2D2398#2D2398

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

Color values

HEX#2D2398
RGBrgb(45, 35, 152)
HSLhsl(245, 63%, 37%)
HSVhsv(245, 77%, 60%)
CMYKcmyk(70.4%, 77%, 0%, 40.4%)
CIE-LABlab(23.76, 41.64, -61.72)
CIE-LCHlch(23.76, 74.45, 304.00°)
OKLaboklab(36.09% 0.0197 -0.1784)
OKLCHoklch(36.09% 0.179 276.3)
XYZxyz(7.3489, 4.0263, 30.0895)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2398 #8E9823
analogous
#235498 #2D2398 #682398
triadic
#2D2398 #982D23 #23982D
tetradic
#2D2398 #982354 #8E9823 #239868
square
#2D2398 #982354 #8E9823 #239868
split-complementary
#2D2398 #986823 #549823
monochromatic
#100C35 #1E1866 #2D2398 #3C2ECA #675CD9

Accessibility & contrast

On white

11.63
#2D2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2398
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2398#FFFFFF#000000##FFFFFF
##2D23981.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d2398;
/* rgb */ color: rgb(45, 35, 152);
/* oklch */ color: oklch(36.1% 0.179 276.3);
Tailwind
colors: {
  custom: {
    50: '#7760b8',
    500: '#2d2398',
    950: '#000000',
  },
}
SCSS
$custom: #2d2398;
$custom-light: #7760b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2398",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 245.128,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36085,
    "c": 0.17948,
    "h": 276.3
  },
  "luminance": 0.04027
}

Semantic roles & 50–950 ramp

primary
#2D2398
secondary
#B5BE59
accent
#E642D8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2398

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

Preview Lab → · Contrast checker → · Palette generator →

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