#2D2F6F#2D2F6F

#2D2F6F is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.2% C 0.109 H 277.6°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2D2F6F
RGBrgb(45, 47, 111)
HSLhsl(238, 42%, 31%)
HSVhsv(238, 59%, 44%)
CMYKcmyk(59.5%, 57.7%, 0%, 56.5%)
CIE-LABlab(22.79, 19.75, -37.55)
CIE-LCHlch(22.79, 42.42, 297.75°)
OKLaboklab(34.22% 0.0144 -0.1075)
OKLCHoklch(34.22% 0.109 277.6)
XYZxyz(4.9670, 3.7383, 15.4957)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F6F #6F6D2D
analogous
#2D506F #2D2F6F #4C2D6F
triadic
#2D2F6F #6F2D2F #2F6F2D
tetradic
#2D2F6F #6F2D50 #6F6D2D #2D6F4C
square
#2D2F6F #6F2D50 #6F6D2D #2D6F4C
split-complementary
#2D2F6F #6F4C2D #506F2D
monochromatic
#0A0A18 #1B1D43 #2D2F6F #3F419B #5A5DBC

Accessibility & contrast

On white

12.02
#2D2F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2D2F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F6F
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F6F#FFFFFF#000000##FFFFFF
##2D2F6F1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043971
Deuteranopia (green-blind)
#00346E
Tritanopia (blue-blind)
#083E4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2f6f;
/* rgb */ color: rgb(45, 47, 111);
/* oklch */ color: oklch(34.2% 0.109 277.6);
Tailwind
colors: {
  custom: {
    50: '#6d6799',
    500: '#2d2f6f',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f6f;
$custom-light: #6d6799;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f6f",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 111
  },
  "hsl": {
    "h": 238.182,
    "s": 42.308,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34221,
    "c": 0.10852,
    "h": 277.6
  },
  "luminance": 0.03739
}

Semantic roles & 50–950 ramp

primary
#2D2F6F
secondary
#A19E57
accent
#CE56D2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2D2F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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