#2D2E97#2D2E97

#2D2E97 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.166 H 274.5°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#2D2E97
RGBrgb(45, 46, 151)
HSLhsl(239, 54%, 38%)
HSVhsv(239, 70%, 59%)
CMYKcmyk(70.2%, 69.5%, 0%, 40.8%)
CIE-LABlab(26.00, 34.79, -57.42)
CIE-LCHlch(26.00, 67.14, 301.21°)
OKLaboklab(37.65% 0.0131 -0.1659)
OKLCHoklch(37.65% 0.166 274.5)
XYZxyz(7.6432, 4.7455, 29.7853)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2E97 #97962D
analogous
#2D6397 #2D2E97 #612D97
triadic
#2D2E97 #972D2E #2E972D
tetradic
#2D2E97 #972D63 #97962D #2D9761
square
#2D2E97 #972D63 #97962D #2D9761
split-complementary
#2D2E97 #97612D #63972D
monochromatic
#111139 #1F2068 #2D2E97 #3C3EC5 #6B6CD3

Accessibility & contrast

On white

10.77
#2D2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2D2E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2E97
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2E97#FFFFFF#000000##FFFFFF
##2D2E971.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d2e97;
/* rgb */ color: rgb(45, 46, 151);
/* oklch */ color: oklch(37.7% 0.166 274.5);
Tailwind
colors: {
  custom: {
    50: '#7567b7',
    500: '#2d2e97',
    950: '#000000',
  },
}
SCSS
$custom: #2d2e97;
$custom-light: #7567b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2e97",
  "rgb": {
    "r": 45,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 239.434,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37652,
    "c": 0.16642,
    "h": 274.5
  },
  "luminance": 0.04746
}

Semantic roles & 50–950 ramp

primary
#2D2E97
secondary
#BAB966
accent
#DC4ADD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2D2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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