#2D2F6D#2D2F6D

#2D2F6D is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.1% C 0.105 H 277.8°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#2D2F6D
RGBrgb(45, 47, 109)
HSLhsl(238, 42%, 30%)
HSVhsv(238, 59%, 43%)
CMYKcmyk(58.7%, 56.9%, 0%, 57.3%)
CIE-LABlab(22.64, 19.03, -36.50)
CIE-LCHlch(22.64, 41.16, 297.53°)
OKLaboklab(34.06% 0.0144 -0.1045)
OKLCHoklch(34.06% 0.105 277.8)
XYZxyz(4.8581, 3.6947, 14.9222)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F6D #6D6B2D
analogous
#2D4F6D #2D2F6D #4B2D6D
triadic
#2D2F6D #6D2D2F #2F6D2D
tetradic
#2D2F6D #6D2D4F #6D6B2D #2D6D4B
square
#2D2F6D #6D2D4F #6D6B2D #2D6D4B
split-complementary
#2D2F6D #6D4B2D #4F6D2D
monochromatic
#090A16 #1B1C42 #2D2F6D #3F4298 #5A5DBB

Accessibility & contrast

On white

12.08
#2D2F6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D2F6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F6D
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F6D#FFFFFF#000000##FFFFFF
##2D2F6D1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09396F
Deuteranopia (green-blind)
#00336C
Tritanopia (blue-blind)
#0B3D49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2f6d;
/* rgb */ color: rgb(45, 47, 109);
/* oklch */ color: oklch(34.1% 0.105 277.8);
Tailwind
colors: {
  custom: {
    50: '#6c6797',
    500: '#2d2f6d',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f6d;
$custom-light: #6c6797;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f6d",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 109
  },
  "hsl": {
    "h": 238.125,
    "s": 41.558,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3406,
    "c": 0.10546,
    "h": 277.8
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

primary
#2D2F6D
secondary
#9F9C57
accent
#CE56D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2D2F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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