#2D2189#2D2189

#2D2189 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.163 H 278.6°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#2D2189
RGBrgb(45, 33, 137)
HSLhsl(247, 61%, 33%)
HSVhsv(247, 76%, 54%)
CMYKcmyk(67.2%, 75.9%, 0%, 46.3%)
CIE-LABlab(21.77, 37.83, -55.71)
CIE-LCHlch(21.77, 67.34, 304.18°)
OKLaboklab(34.2% 0.0243 -0.1608)
OKLCHoklch(34.2% 0.163 278.6)
XYZxyz(6.1399, 3.4512, 24.0047)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2189 #7D8921
analogous
#214989 #2D2189 #612189
triadic
#2D2189 #892D21 #21892D
tetradic
#2D2189 #892149 #7D8921 #218961
square
#2D2189 #892149 #7D8921 #218961
split-complementary
#2D2189 #896121 #498921
monochromatic
#0D0926 #1D1558 #2D2189 #3D2DBA #5F50D5

Accessibility & contrast

On white

12.42
#2D2189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2D2189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2189
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2189#FFFFFF#000000##FFFFFF
##2D21891.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003087
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d2189;
/* rgb */ color: rgb(45, 33, 137);
/* oklch */ color: oklch(34.2% 0.163 278.6);
Tailwind
colors: {
  custom: {
    50: '#735eac',
    500: '#2d2189',
    950: '#000000',
  },
}
SCSS
$custom: #2d2189;
$custom-light: #735eac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2189",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 246.923,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34204,
    "c": 0.16267,
    "h": 278.6
  },
  "luminance": 0.03452
}

Semantic roles & 50–950 ramp

primary
#2D2189
secondary
#ACB84E
accent
#E444D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D2189

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

Preview Lab → · Contrast checker → · Palette generator →

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