#2D2F76#2D2F76

#2D2F76 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.8% C 0.119 H 277.0°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#2D2F76
RGBrgb(45, 47, 118)
HSLhsl(238, 45%, 32%)
HSVhsv(238, 62%, 46%)
CMYKcmyk(61.9%, 60.2%, 0%, 53.7%)
CIE-LABlab(23.33, 22.29, -41.14)
CIE-LCHlch(23.33, 46.79, 298.45°)
OKLaboklab(34.8% 0.0146 -0.1181)
OKLCHoklch(34.8% 0.119 277)
XYZxyz(5.3677, 3.8985, 17.6057)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F76 #76742D
analogous
#2D5476 #2D2F76 #502D76
triadic
#2D2F76 #762D2F #2F762D
tetradic
#2D2F76 #762D54 #76742D #2D7650
square
#2D2F76 #762D54 #76742D #2D7650
split-complementary
#2D2F76 #76502D #54762D
monochromatic
#0B0C1D #1C1D4A #2D2F76 #3E41A2 #5C5FC1

Accessibility & contrast

On white

11.80
#2D2F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2D2F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F76
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F76#FFFFFF#000000##FFFFFF
##2D2F761.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B78
Deuteranopia (green-blind)
#003575
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d2f76;
/* rgb */ color: rgb(45, 47, 118);
/* oklch */ color: oklch(34.8% 0.119 277.0);
Tailwind
colors: {
  custom: {
    50: '#6e679e',
    500: '#2d2f76',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f76;
$custom-light: #6e679e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f76",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 238.356,
    "s": 44.785,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34801,
    "c": 0.11903,
    "h": 277
  },
  "luminance": 0.03899
}

Semantic roles & 50–950 ramp

primary
#2D2F76
secondary
#A7A557
accent
#D153D4
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2D2F76

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

Preview Lab → · Contrast checker → · Palette generator →

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