#2D2F72#2D2F72

#2D2F72 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.5% C 0.113 H 277.4°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#2D2F72
RGBrgb(45, 47, 114)
HSLhsl(238, 43%, 31%)
HSVhsv(238, 61%, 45%)
CMYKcmyk(60.5%, 58.8%, 0%, 55.3%)
CIE-LABlab(23.02, 20.84, -39.10)
CIE-LCHlch(23.02, 44.30, 298.06°)
OKLaboklab(34.47% 0.0145 -0.1121)
OKLCHoklch(34.47% 0.113 277.4)
XYZxyz(5.1350, 3.8055, 16.3803)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F72 #72702D
analogous
#2D5172 #2D2F72 #4D2D72
triadic
#2D2F72 #722D2F #2F722D
tetradic
#2D2F72 #722D51 #72702D #2D724D
square
#2D2F72 #722D51 #72702D #2D724D
split-complementary
#2D2F72 #724D2D #51722D
monochromatic
#0A0B1A #1C1D46 #2D2F72 #3E419E #5B5EBE

Accessibility & contrast

On white

11.92
#2D2F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2F72
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F72#FFFFFF#000000##FFFFFF
##2D2F721.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A74
Deuteranopia (green-blind)
#003471
Tritanopia (blue-blind)
#023F4B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2f72;
/* rgb */ color: rgb(45, 47, 114);
/* oklch */ color: oklch(34.5% 0.113 277.4);
Tailwind
colors: {
  custom: {
    50: '#6d679b',
    500: '#2d2f72',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f72;
$custom-light: #6d679b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f72",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 238.261,
    "s": 43.396,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34467,
    "c": 0.11306,
    "h": 277.4
  },
  "luminance": 0.03806
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D2F72

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

Preview Lab → · Contrast checker → · Palette generator →

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