#2D3298#2D3298

#2D3298 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.163 H 273.6°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#2D3298
RGBrgb(45, 50, 152)
HSLhsl(237, 54%, 39%)
HSVhsv(237, 70%, 60%)
CMYKcmyk(70.4%, 67.1%, 0%, 40.4%)
CIE-LABlab(27.03, 32.61, -56.34)
CIE-LCHlch(27.03, 65.10, 300.07°)
OKLaboklab(38.43% 0.0102 -0.1627)
OKLCHoklch(38.43% 0.163 273.6)
XYZxyz(7.8884, 5.1053, 30.2694)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3298 #98932D
analogous
#2D6798 #2D3298 #5D2D98
triadic
#2D3298 #982D32 #32982D
tetradic
#2D3298 #982D67 #98932D #2D985D
square
#2D3298 #982D67 #98932D #2D985D
split-complementary
#2D3298 #985D2D #67982D
monochromatic
#11133A #1F2269 #2D3298 #3D43C5 #6C71D3

Accessibility & contrast

On white

10.39
#2D3298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2D3298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3298
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3298#FFFFFF#000000##FFFFFF
##2D32981.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#003B96
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d3298;
/* rgb */ color: rgb(45, 50, 152);
/* oklch */ color: oklch(38.4% 0.163 273.6);
Tailwind
colors: {
  custom: {
    50: '#756ab7',
    500: '#2d3298',
    950: '#000000',
  },
}
SCSS
$custom: #2d3298;
$custom-light: #756ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3298",
  "rgb": {
    "r": 45,
    "g": 50,
    "b": 152
  },
  "hsl": {
    "h": 237.196,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38432,
    "c": 0.16303,
    "h": 273.6
  },
  "luminance": 0.05106
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D3298

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

Preview Lab → · Contrast checker → · Palette generator →

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