#2D2F96#2D2F96

#2D2F96 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.164 H 274.4°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#2D2F96
RGBrgb(45, 47, 150)
HSLhsl(239, 54%, 38%)
HSVhsv(239, 70%, 59%)
CMYKcmyk(70%, 68.7%, 0%, 41.2%)
CIE-LABlab(26.13, 33.81, -56.58)
CIE-LCHlch(26.13, 65.92, 300.86°)
OKLaboklab(37.72% 0.0125 -0.1634)
OKLCHoklch(37.72% 0.164 274.4)
XYZxyz(7.6019, 4.7922, 29.3726)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F96 #96942D
analogous
#2D6396 #2D2F96 #5F2D96
triadic
#2D2F96 #962D2F #2F962D
tetradic
#2D2F96 #962D63 #96942D #2D965F
square
#2D2F96 #962D63 #96942D #2D965F
split-complementary
#2D2F96 #965F2D #63962D
monochromatic
#111138 #1F2067 #2D2F96 #3C3EC4 #6B6DD3

Accessibility & contrast

On white

10.72
#2D2F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2D2F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F96
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F96#FFFFFF#000000##FFFFFF
##2D2F961.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003994
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d2f96;
/* rgb */ color: rgb(45, 47, 150);
/* oklch */ color: oklch(37.7% 0.164 274.4);
Tailwind
colors: {
  custom: {
    50: '#7568b6',
    500: '#2d2f96',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f96;
$custom-light: #7568b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f96",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 238.857,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37723,
    "c": 0.16392,
    "h": 274.4
  },
  "luminance": 0.04793
}

Semantic roles & 50–950 ramp

primary
#2D2F96
secondary
#B9B865
accent
#DA4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2D2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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