#2D2D96#2D2D96

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

Color values

HEX#2D2D96
RGBrgb(45, 45, 150)
HSLhsl(240, 54%, 38%)
HSVhsv(240, 70%, 59%)
CMYKcmyk(70%, 70%, 0%, 41.2%)
CIE-LABlab(25.67, 35.07, -57.34)
CIE-LCHlch(25.67, 67.22, 301.45°)
OKLaboklab(37.39% 0.0139 -0.1657)
OKLCHoklch(37.39% 0.166 274.8)
XYZxyz(7.5238, 4.6360, 29.3466)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D96 #96962D
analogous
#2D6196 #2D2D96 #612D96
triadic
#2D2D96 #962D2D #2D962D
tetradic
#2D2D96 #962D61 #96962D #2D9661
square
#2D2D96 #962D61 #96962D #2D9661
split-complementary
#2D2D96 #96612D #61962D
monochromatic
#111138 #1F1F67 #2D2D96 #3C3CC4 #6B6BD3

Accessibility & contrast

On white

10.90
#2D2D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2D2D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2D96
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D96#FFFFFF#000000##FFFFFF
##2D2D961.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#003894
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d2d96;
/* rgb */ color: rgb(45, 45, 150);
/* oklch */ color: oklch(37.4% 0.166 274.8);
Tailwind
colors: {
  custom: {
    50: '#7567b6',
    500: '#2d2d96',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d96;
$custom-light: #7567b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d96",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 240,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37388,
    "c": 0.16625,
    "h": 274.8
  },
  "luminance": 0.04637
}

Semantic roles & 50–950 ramp

primary
#2D2D96
secondary
#B9B965
accent
#DD4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2D2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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