#2D2098#2D2098

#2D2098 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.182 H 276.7°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#2D2098
RGBrgb(45, 32, 152)
HSLhsl(247, 65%, 36%)
HSVhsv(247, 79%, 60%)
CMYKcmyk(70.4%, 78.9%, 0%, 40.4%)
CIE-LABlab(23.19, 43.25, -62.66)
CIE-LCHlch(23.19, 76.13, 304.62°)
OKLaboklab(35.69% 0.0212 -0.1811)
OKLCHoklch(35.69% 0.182 276.7)
XYZxyz(7.2643, 3.8572, 30.0614)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2098 #8B9820
analogous
#204F98 #2D2098 #692098
triadic
#2D2098 #982D20 #20982D
tetradic
#2D2098 #98204F #8B9820 #209869
square
#2D2098 #98204F #8B9820 #209869
split-complementary
#2D2098 #986920 #4F9820
monochromatic
#0F0B33 #1E1565 #2D2098 #3C2BCB #6557DC

Accessibility & contrast

On white

11.85
#2D2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2D2098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2098
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2098#FFFFFF#000000##FFFFFF
##2D20981.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2098;
/* rgb */ color: rgb(45, 32, 152);
/* oklch */ color: oklch(35.7% 0.182 276.7);
Tailwind
colors: {
  custom: {
    50: '#775eb8',
    500: '#2d2098',
    950: '#000000',
  },
}
SCSS
$custom: #2d2098;
$custom-light: #775eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2098",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 246.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35689,
    "c": 0.18233,
    "h": 276.7
  },
  "luminance": 0.03858
}

Semantic roles & 50–950 ramp

primary
#2D2098
secondary
#B4BF54
accent
#E840D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2098

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

Preview Lab → · Contrast checker → · Palette generator →

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