#2D1A90#2D1A90

#2D1A90 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.178 H 278.5°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#2D1A90
RGBrgb(45, 26, 144)
HSLhsl(250, 69%, 33%)
HSVhsv(250, 82%, 56%)
CMYKcmyk(68.7%, 81.9%, 0%, 43.5%)
CIE-LABlab(21.24, 43.77, -60.93)
CIE-LCHlch(21.24, 75.02, 305.69°)
OKLaboklab(34.07% 0.0264 -0.176)
OKLCHoklch(34.07% 0.178 278.5)
XYZxyz(6.4840, 3.3097, 26.6773)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A90 #7D901A
analogous
#1A4290 #2D1A90 #681A90
triadic
#2D1A90 #902D1A #1A902D
tetradic
#2D1A90 #901A42 #7D901A #1A9068
square
#2D1A90 #901A42 #7D901A #1A9068
split-complementary
#2D1A90 #90681A #42901A
monochromatic
#0D0728 #1D115C #2D1A90 #3D23C4 #5F47DE

Accessibility & contrast

On white

12.64
#2D1A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2D1A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A90
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A90#FFFFFF#000000##FFFFFF
##2D1A901.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002E8E
Tritanopia (blue-blind)
#003E56
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d1a90;
/* rgb */ color: rgb(45, 26, 144);
/* oklch */ color: oklch(34.1% 0.178 278.5);
Tailwind
colors: {
  custom: {
    50: '#765bb2',
    500: '#2d1a90',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a90;
$custom-light: #765bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a90",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 144
  },
  "hsl": {
    "h": 249.661,
    "s": 69.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34065,
    "c": 0.17797,
    "h": 278.5
  },
  "luminance": 0.0331
}

Semantic roles & 50–950 ramp

primary
#2D1A90
secondary
#ACBF47
accent
#EC3CD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1A90

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

Preview Lab → · Contrast checker → · Palette generator →

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