#2D2F75#2D2F75

#2D2F75 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.7% C 0.118 H 277.1°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#2D2F75
RGBrgb(45, 47, 117)
HSLhsl(238, 44%, 32%)
HSVhsv(238, 62%, 46%)
CMYKcmyk(61.5%, 59.8%, 0%, 54.1%)
CIE-LABlab(23.25, 21.93, -40.63)
CIE-LCHlch(23.25, 46.17, 298.35°)
OKLaboklab(34.72% 0.0146 -0.1166)
OKLCHoklch(34.72% 0.118 277.1)
XYZxyz(5.3086, 3.8749, 17.2944)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F75 #75732D
analogous
#2D5375 #2D2F75 #4F2D75
triadic
#2D2F75 #752D2F #2F752D
tetradic
#2D2F75 #752D53 #75732D #2D754F
square
#2D2F75 #752D53 #75732D #2D754F
split-complementary
#2D2F75 #754F2D #53752D
monochromatic
#0B0B1D #1C1D49 #2D2F75 #3E41A1 #5C5FC0

Accessibility & contrast

On white

11.83
#2D2F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2F75
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F75#FFFFFF#000000##FFFFFF
##2D2F751.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A77
Deuteranopia (green-blind)
#003474
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2f75;
/* rgb */ color: rgb(45, 47, 117);
/* oklch */ color: oklch(34.7% 0.118 277.1);
Tailwind
colors: {
  custom: {
    50: '#6e679d',
    500: '#2d2f75',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f75;
$custom-light: #6e679d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f75",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 117
  },
  "hsl": {
    "h": 238.333,
    "s": 44.444,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34717,
    "c": 0.11755,
    "h": 277.1
  },
  "luminance": 0.03875
}

Semantic roles & 50–950 ramp

primary
#2D2F75
secondary
#A6A457
accent
#D154D4
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2D2F75

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

Preview Lab → · Contrast checker → · Palette generator →

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