#2D3198#2D3198

#2D3198 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.164 H 273.8°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#2D3198
RGBrgb(45, 49, 152)
HSLhsl(238, 54%, 39%)
HSVhsv(238, 70%, 60%)
CMYKcmyk(70.4%, 67.8%, 0%, 40.4%)
CIE-LABlab(26.79, 33.25, -56.73)
CIE-LCHlch(26.79, 65.75, 300.38°)
OKLaboklab(38.26% 0.0109 -0.1639)
OKLCHoklch(38.26% 0.164 273.8)
XYZxyz(7.8461, 5.0208, 30.2553)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3198 #98942D
analogous
#2D6698 #2D3198 #5E2D98
triadic
#2D3198 #982D31 #31982D
tetradic
#2D3198 #982D66 #98942D #2D985E
square
#2D3198 #982D66 #98942D #2D985E
split-complementary
#2D3198 #985E2D #66982D
monochromatic
#11133A #1F2269 #2D3198 #3D42C5 #6C70D3

Accessibility & contrast

On white

10.48
#2D3198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2D3198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3198
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3198#FFFFFF#000000##FFFFFF
##2D31981.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#003A96
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d3198;
/* rgb */ color: rgb(45, 49, 152);
/* oklch */ color: oklch(38.3% 0.164 273.8);
Tailwind
colors: {
  custom: {
    50: '#7569b7',
    500: '#2d3198',
    950: '#000000',
  },
}
SCSS
$custom: #2d3198;
$custom-light: #7569b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3198",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 237.757,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38258,
    "c": 0.16422,
    "h": 273.8
  },
  "luminance": 0.05022
}

Semantic roles & 50–950 ramp

primary
#2D3198
secondary
#BAB766
accent
#D84ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2D3198

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

Preview Lab → · Contrast checker → · Palette generator →

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