#2D2A91#2D2A91

#2D2A91 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.163 H 275.9°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#2D2A91
RGBrgb(45, 42, 145)
HSLhsl(242, 55%, 37%)
HSVhsv(242, 71%, 57%)
CMYKcmyk(69%, 71%, 0%, 43.1%)
CIE-LABlab(24.51, 35.18, -56.18)
CIE-LCHlch(24.51, 66.29, 302.06°)
OKLaboklab(36.4% 0.0167 -0.1623)
OKLCHoklch(36.4% 0.163 275.9)
XYZxyz(7.0193, 4.2575, 27.2344)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A91 #8E912A
analogous
#2A5B91 #2D2A91 #612A91
triadic
#2D2A91 #912D2A #2A912D
tetradic
#2D2A91 #912A5B #8E912A #2A9161
square
#2D2A91 #912A5B #8E912A #2A9161
split-complementary
#2D2A91 #91612A #5B912A
monochromatic
#100F32 #1E1C62 #2D2A91 #3C38C0 #6763D2

Accessibility & contrast

On white

11.34
#2D2A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2D2A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A91
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A91#FFFFFF#000000##FFFFFF
##2D2A911.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#00368F
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d2a91;
/* rgb */ color: rgb(45, 42, 145);
/* oklch */ color: oklch(36.4% 0.163 275.9);
Tailwind
colors: {
  custom: {
    50: '#7464b2',
    500: '#2d2a91',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a91;
$custom-light: #7464b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a91",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 145
  },
  "hsl": {
    "h": 241.748,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36401,
    "c": 0.16312,
    "h": 275.9
  },
  "luminance": 0.04258
}

Semantic roles & 50–950 ramp

primary
#2D2A91
secondary
#B5B85F
accent
#DE49DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2D2A91

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

Preview Lab → · Contrast checker → · Palette generator →

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