#2D2D9F#2D2D9F

#2D2D9F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.178 H 274.1°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#2D2D9F
RGBrgb(45, 45, 159)
HSLhsl(240, 56%, 40%)
HSVhsv(240, 72%, 62%)
CMYKcmyk(71.7%, 71.7%, 0%, 37.6%)
CIE-LABlab(26.55, 38.19, -61.39)
CIE-LCHlch(26.55, 72.30, 301.89°)
OKLaboklab(38.29% 0.0126 -0.1775)
OKLCHoklch(38.29% 0.178 274.1)
XYZxyz(8.2765, 4.9371, 33.3109)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D9F #9F9F2D
analogous
#2D669F #2D2D9F #662D9F
triadic
#2D2D9F #9F2D2D #2D9F2D
tetradic
#2D2D9F #9F2D66 #9F9F2D #2D9F66
square
#2D2D9F #9F2D66 #9F9F2D #2D9F66
split-complementary
#2D2D9F #9F662D #669F2D
monochromatic
#121240 #20206F #2D2D9F #4040C9 #7070D6

Accessibility & contrast

On white

10.57
#2D2D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2D2D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2D9F
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D9F#FFFFFF#000000##FFFFFF
##2D2D9F1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d2d9f;
/* rgb */ color: rgb(45, 45, 159);
/* oklch */ color: oklch(38.3% 0.178 274.1);
Tailwind
colors: {
  custom: {
    50: '#7767bc',
    500: '#2d2d9f',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d9f;
$custom-light: #7767bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d9f",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 240,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.38291,
    "c": 0.17795,
    "h": 274.1
  },
  "luminance": 0.04938
}

Semantic roles & 50–950 ramp

primary
#2D2D9F
secondary
#BEBE6A
accent
#DF49DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D2D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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