#2D3098#2D3098

#2D3098 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.165 H 274.0°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#2D3098
RGBrgb(45, 48, 152)
HSLhsl(238, 54%, 39%)
HSVhsv(238, 70%, 60%)
CMYKcmyk(70.4%, 68.4%, 0%, 40.4%)
CIE-LABlab(26.56, 33.89, -57.11)
CIE-LCHlch(26.56, 66.41, 300.68°)
OKLaboklab(38.09% 0.0116 -0.165)
OKLCHoklch(38.09% 0.165 274)
XYZxyz(7.8048, 4.9381, 30.2415)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3098 #98952D
analogous
#2D6598 #2D3098 #5F2D98
triadic
#2D3098 #982D30 #30982D
tetradic
#2D3098 #982D65 #98952D #2D985F
square
#2D3098 #982D65 #98952D #2D985F
split-complementary
#2D3098 #985F2D #65982D
monochromatic
#11123A #1F2169 #2D3098 #3D41C5 #6C6FD3

Accessibility & contrast

On white

10.56
#2D3098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2D3098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3098
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3098#FFFFFF#000000##FFFFFF
##2D30981.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.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: #2d3098;
/* rgb */ color: rgb(45, 48, 152);
/* oklch */ color: oklch(38.1% 0.165 274.0);
Tailwind
colors: {
  custom: {
    50: '#7569b7',
    500: '#2d3098',
    950: '#000000',
  },
}
SCSS
$custom: #2d3098;
$custom-light: #7569b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3098",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 152
  },
  "hsl": {
    "h": 238.318,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38087,
    "c": 0.16541,
    "h": 274
  },
  "luminance": 0.04939
}

Semantic roles & 50–950 ramp

primary
#2D3098
secondary
#BAB866
accent
#DA4ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2D3098

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

Preview Lab → · Contrast checker → · Palette generator →

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