#2D2D98#2D2D98

#2D2D98 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.169 H 274.6°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#2D2D98
RGBrgb(45, 45, 152)
HSLhsl(240, 54%, 39%)
HSVhsv(240, 70%, 60%)
CMYKcmyk(70.4%, 70.4%, 0%, 40.4%)
CIE-LABlab(25.87, 35.77, -58.25)
CIE-LCHlch(25.87, 68.36, 301.55°)
OKLaboklab(37.59% 0.0136 -0.1683)
OKLCHoklch(37.59% 0.169 274.6)
XYZxyz(7.6862, 4.7009, 30.2020)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D98 #98982D
analogous
#2D6298 #2D2D98 #622D98
triadic
#2D2D98 #982D2D #2D982D
tetradic
#2D2D98 #982D62 #98982D #2D9862
square
#2D2D98 #982D62 #98982D #2D9862
split-complementary
#2D2D98 #98622D #62982D
monochromatic
#11113A #1F1F69 #2D2D98 #3D3DC5 #6C6CD3

Accessibility & contrast

On white

10.82
#2D2D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2D2D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2D98
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D98#FFFFFF#000000##FFFFFF
##2D2D981.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d2d98;
/* rgb */ color: rgb(45, 45, 152);
/* oklch */ color: oklch(37.6% 0.169 274.6);
Tailwind
colors: {
  custom: {
    50: '#7667b7',
    500: '#2d2d98',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d98;
$custom-light: #7667b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d98",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 240,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37587,
    "c": 0.16888,
    "h": 274.6
  },
  "luminance": 0.04702
}

Semantic roles & 50–950 ramp

primary
#2D2D98
secondary
#BABA66
accent
#DE4ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2D2D98

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

Preview Lab → · Contrast checker → · Palette generator →

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