#2D3170#2D3170

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

Color values

HEX#2D3170
RGBrgb(45, 49, 112)
HSLhsl(236, 43%, 31%)
HSVhsv(236, 60%, 44%)
CMYKcmyk(59.8%, 56.3%, 0%, 56.1%)
CIE-LABlab(23.42, 18.73, -37.17)
CIE-LCHlch(23.42, 41.62, 296.75°)
OKLaboklab(34.72% 0.0122 -0.1064)
OKLCHoklch(34.72% 0.107 276.5)
XYZxyz(5.1042, 3.9240, 15.8145)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3170 #706C2D
analogous
#2D5270 #2D3170 #4A2D70
triadic
#2D3170 #702D31 #31702D
tetradic
#2D3170 #702D52 #706C2D #2D704A
square
#2D3170 #702D52 #706C2D #2D704A
split-complementary
#2D3170 #704A2D #52702D
monochromatic
#0A0B19 #1B1E44 #2D3170 #3F449C #5A60BD

Accessibility & contrast

On white

11.77
#2D3170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D3170
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3170#FFFFFF#000000##FFFFFF
##2D31701.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3B72
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#053F4B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d3170;
/* rgb */ color: rgb(45, 49, 112);
/* oklch */ color: oklch(34.7% 0.107 276.5);
Tailwind
colors: {
  custom: {
    50: '#6d6999',
    500: '#2d3170',
    950: '#000000',
  },
}
SCSS
$custom: #2d3170;
$custom-light: #6d6999;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3170",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 112
  },
  "hsl": {
    "h": 236.418,
    "s": 42.675,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34718,
    "c": 0.10712,
    "h": 276.5
  },
  "luminance": 0.03924
}

Semantic roles & 50–950 ramp

primary
#2D3170
secondary
#A29D57
accent
#CB55D2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2D3170

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

Preview Lab → · Contrast checker → · Palette generator →

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