#2D2F5C#2D2F5C

#2D2F5C is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.8% C 0.079 H 279.2°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#2D2F5C
RGBrgb(45, 47, 92)
HSLhsl(237, 34%, 27%)
HSVhsv(237, 51%, 36%)
CMYKcmyk(51.1%, 48.9%, 0%, 63.9%)
CIE-LABlab(21.44, 12.95, -27.33)
CIE-LCHlch(21.44, 30.24, 295.36°)
OKLaboklab(32.78% 0.0126 -0.0775)
OKLCHoklch(32.78% 0.079 279.2)
XYZxyz(4.0299, 3.3634, 10.5600)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F5C #5C5A2D
analogous
#2D475C #2D2F5C #432D5C
triadic
#2D2F5C #5C2D2F #2F5C2D
tetradic
#2D2F5C #5C2D47 #5C5A2D #2D5C43
square
#2D2F5C #5C2D47 #5C5A2D #2D5C43
split-complementary
#2D2F5C #5C432D #475C2D
monochromatic
#0A0A15 #191A33 #2D2F5C #414485 #575AAD

Accessibility & contrast

On white

12.55
#2D2F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2D2F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F5C
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F5C#FFFFFF#000000##FFFFFF
##2D2F5C1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D355E
Deuteranopia (green-blind)
#19325B
Tritanopia (blue-blind)
#1C3841
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d2f5c;
/* rgb */ color: rgb(45, 47, 92);
/* oklch */ color: oklch(32.8% 0.079 279.2);
Tailwind
colors: {
  custom: {
    50: '#69678a',
    500: '#2d2f5c',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f5c;
$custom-light: #69678a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f5c",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 92
  },
  "hsl": {
    "h": 237.447,
    "s": 34.307,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3278,
    "c": 0.07854,
    "h": 279.2
  },
  "luminance": 0.03364
}

Semantic roles & 50–950 ramp

primary
#2D2F5C
secondary
#8E8C57
accent
#C65DCA
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #2D2F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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