#2D2198#2D2198

#2D2198 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.181 H 276.6°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#2D2198
RGBrgb(45, 33, 152)
HSLhsl(246, 64%, 36%)
HSVhsv(246, 78%, 60%)
CMYKcmyk(70.4%, 78.3%, 0%, 40.4%)
CIE-LABlab(23.38, 42.72, -62.35)
CIE-LCHlch(23.38, 75.58, 304.42°)
OKLaboklab(35.82% 0.0207 -0.1802)
OKLCHoklch(35.82% 0.181 276.6)
XYZxyz(7.2917, 3.9119, 30.0705)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2198 #8C9821
analogous
#215198 #2D2198 #692198
triadic
#2D2198 #982D21 #21982D
tetradic
#2D2198 #982151 #8C9821 #219869
square
#2D2198 #982151 #8C9821 #219869
split-complementary
#2D2198 #986921 #519821
monochromatic
#0F0B33 #1E1666 #2D2198 #3C2CCA #6659DB

Accessibility & contrast

On white

11.78
#2D2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2D2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2198
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2198#FFFFFF#000000##FFFFFF
##2D21981.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d2198;
/* rgb */ color: rgb(45, 33, 152);
/* oklch */ color: oklch(35.8% 0.181 276.6);
Tailwind
colors: {
  custom: {
    50: '#775fb8',
    500: '#2d2198',
    950: '#000000',
  },
}
SCSS
$custom: #2d2198;
$custom-light: #775fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2198",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 246.05,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35818,
    "c": 0.1814,
    "h": 276.6
  },
  "luminance": 0.03913
}

Semantic roles & 50–950 ramp

primary
#2D2198
secondary
#B4BF56
accent
#E740D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2D2198

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

Preview Lab → · Contrast checker → · Palette generator →

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