#2D2F97#2D2F97

#2D2F97 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.165 H 274.3°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#2D2F97
RGBrgb(45, 47, 151)
HSLhsl(239, 54%, 38%)
HSVhsv(239, 70%, 59%)
CMYKcmyk(70.2%, 68.9%, 0%, 40.8%)
CIE-LABlab(26.23, 34.17, -57.04)
CIE-LCHlch(26.23, 66.49, 300.92°)
OKLaboklab(37.82% 0.0124 -0.1648)
OKLCHoklch(37.82% 0.165 274.3)
XYZxyz(7.6828, 4.8246, 29.7985)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F97 #97952D
analogous
#2D6497 #2D2F97 #602D97
triadic
#2D2F97 #972D2F #2F972D
tetradic
#2D2F97 #972D64 #97952D #2D9760
square
#2D2F97 #972D64 #97952D #2D9760
split-complementary
#2D2F97 #97602D #64972D
monochromatic
#111239 #1F2068 #2D2F97 #3C3FC5 #6B6DD3

Accessibility & contrast

On white

10.69
#2D2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2D2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F97
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F97#FFFFFF#000000##FFFFFF
##2D2F971.0010.691.9710.69
#FFFFFF10.691.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d2f97;
/* rgb */ color: rgb(45, 47, 151);
/* oklch */ color: oklch(37.8% 0.165 274.3);
Tailwind
colors: {
  custom: {
    50: '#7568b7',
    500: '#2d2f97',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f97;
$custom-light: #7568b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f97",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 238.868,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.3782,
    "c": 0.16526,
    "h": 274.3
  },
  "luminance": 0.04825
}

Semantic roles & 50–950 ramp

primary
#2D2F97
secondary
#BAB866
accent
#DB4ADD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2D2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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