#2D2F74#2D2F74

#2D2F74 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.6% C 0.116 H 277.2°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#2D2F74
RGBrgb(45, 47, 116)
HSLhsl(238, 44%, 32%)
HSVhsv(238, 61%, 45%)
CMYKcmyk(61.2%, 59.5%, 0%, 54.5%)
CIE-LABlab(23.17, 21.57, -40.12)
CIE-LCHlch(23.17, 45.55, 298.26°)
OKLaboklab(34.63% 0.0146 -0.1151)
OKLCHoklch(34.63% 0.116 277.2)
XYZxyz(5.2501, 3.8515, 16.9864)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F74 #74722D
analogous
#2D5374 #2D2F74 #4F2D74
triadic
#2D2F74 #742D2F #2F742D
tetradic
#2D2F74 #742D53 #74722D #2D744F
square
#2D2F74 #742D53 #74722D #2D744F
split-complementary
#2D2F74 #744F2D #53742D
monochromatic
#0B0B1C #1C1D48 #2D2F74 #3E41A0 #5C5FC0

Accessibility & contrast

On white

11.86
#2D2F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2D2F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F74
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F74#FFFFFF#000000##FFFFFF
##2D2F741.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A76
Deuteranopia (green-blind)
#003473
Tritanopia (blue-blind)
#003F4C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2f74;
/* rgb */ color: rgb(45, 47, 116);
/* oklch */ color: oklch(34.6% 0.116 277.2);
Tailwind
colors: {
  custom: {
    50: '#6e679d',
    500: '#2d2f74',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f74;
$custom-light: #6e679d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f74",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 238.31,
    "s": 44.099,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34633,
    "c": 0.11606,
    "h": 277.2
  },
  "luminance": 0.03852
}

Semantic roles & 50–950 ramp

primary
#2D2F74
secondary
#A5A357
accent
#D054D4
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2D2F74

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

Preview Lab → · Contrast checker → · Palette generator →

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