#2D2F71#2D2F71

#2D2F71 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.4% C 0.112 H 277.5°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#2D2F71
RGBrgb(45, 47, 113)
HSLhsl(238, 43%, 31%)
HSVhsv(238, 60%, 44%)
CMYKcmyk(60.2%, 58.4%, 0%, 55.7%)
CIE-LABlab(22.94, 20.48, -38.58)
CIE-LCHlch(22.94, 43.68, 297.96°)
OKLaboklab(34.38% 0.0145 -0.1106)
OKLCHoklch(34.38% 0.112 277.5)
XYZxyz(5.0784, 3.7828, 16.0821)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F71 #716F2D
analogous
#2D5171 #2D2F71 #4D2D71
triadic
#2D2F71 #712D2F #2F712D
tetradic
#2D2F71 #712D51 #716F2D #2D714D
square
#2D2F71 #712D51 #716F2D #2D714D
split-complementary
#2D2F71 #714D2D #51712D
monochromatic
#0A0B19 #1C1D45 #2D2F71 #3E419D #5B5EBE

Accessibility & contrast

On white

11.95
#2D2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2D2F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F71
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F71#FFFFFF#000000##FFFFFF
##2D2F711.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A73
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#043E4B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2f71;
/* rgb */ color: rgb(45, 47, 113);
/* oklch */ color: oklch(34.4% 0.112 277.5);
Tailwind
colors: {
  custom: {
    50: '#6d679a',
    500: '#2d2f71',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f71;
$custom-light: #6d679a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f71",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 238.235,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34384,
    "c": 0.11155,
    "h": 277.5
  },
  "luminance": 0.03783
}

Semantic roles & 50–950 ramp

primary
#2D2F71
secondary
#A3A057
accent
#CF55D3
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2D2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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