#2D2A98#2D2A98

#2D2A98 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.172 H 275.2°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#2D2A98
RGBrgb(45, 42, 152)
HSLhsl(242, 57%, 38%)
HSVhsv(242, 72%, 60%)
CMYKcmyk(70.4%, 72.4%, 0%, 40.4%)
CIE-LABlab(25.20, 37.60, -59.35)
CIE-LCHlch(25.20, 70.25, 302.35°)
OKLaboklab(37.11% 0.0156 -0.1715)
OKLCHoklch(37.11% 0.172 275.2)
XYZxyz(7.5758, 4.4801, 30.1652)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A98 #95982A
analogous
#2A5E98 #2D2A98 #642A98
triadic
#2D2A98 #982D2A #2A982D
tetradic
#2D2A98 #982A5E #95982A #2A9864
square
#2D2A98 #982A5E #95982A #2A9864
split-complementary
#2D2A98 #98642A #5E982A
monochromatic
#111038 #1F1D68 #2D2A98 #3B37C8 #6A67D5

Accessibility & contrast

On white

11.07
#2D2A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D2A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A98
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A98#FFFFFF#000000##FFFFFF
##2D2A981.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d2a98;
/* rgb */ color: rgb(45, 42, 152);
/* oklch */ color: oklch(37.1% 0.172 275.2);
Tailwind
colors: {
  custom: {
    50: '#7665b7',
    500: '#2d2a98',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a98;
$custom-light: #7665b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a98",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 241.636,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37109,
    "c": 0.17223,
    "h": 275.2
  },
  "luminance": 0.04481
}

Semantic roles & 50–950 ramp

primary
#2D2A98
secondary
#B9BB62
accent
#E048DC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2D2A98

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

Preview Lab → · Contrast checker → · Palette generator →

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