#2D2A9C#2D2A9C

#2D2A9C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.177 H 274.8°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#2D2A9C
RGBrgb(45, 42, 156)
HSLhsl(242, 58%, 39%)
HSVhsv(242, 73%, 61%)
CMYKcmyk(71.2%, 73.1%, 0%, 38.8%)
CIE-LABlab(25.60, 38.96, -61.13)
CIE-LCHlch(25.60, 72.49, 302.51°)
OKLaboklab(37.52% 0.0149 -0.1767)
OKLCHoklch(37.52% 0.177 274.8)
XYZxyz(7.9089, 4.6134, 31.9197)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A9C #999C2A
analogous
#2A609C #2D2A9C #662A9C
triadic
#2D2A9C #9C2D2A #2A9C2D
tetradic
#2D2A9C #9C2A60 #999C2A #2A9C66
square
#2D2A9C #9C2A60 #999C2A #2A9C66
split-complementary
#2D2A9C #9C662A #609C2A
monochromatic
#11103C #1F1D6C #2D2A9C #3D39CA #6C6AD7

Accessibility & contrast

On white

10.92
#2D2A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2D2A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A9C
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A9C#FFFFFF#000000##FFFFFF
##2D2A9C1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00379A
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d2a9c;
/* rgb */ color: rgb(45, 42, 156);
/* oklch */ color: oklch(37.5% 0.177 274.8);
Tailwind
colors: {
  custom: {
    50: '#7765ba',
    500: '#2d2a9c',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a9c;
$custom-light: #7765ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a9c",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 241.579,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37519,
    "c": 0.17736,
    "h": 274.8
  },
  "luminance": 0.04614
}

Semantic roles & 50–950 ramp

primary
#2D2A9C
secondary
#BBBD65
accent
#E147DD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D2A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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