#2D3271#2D3271

#2D3271 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 35.0% C 0.107 H 275.9°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#2D3271
RGBrgb(45, 50, 113)
HSLhsl(236, 43%, 31%)
HSVhsv(236, 60%, 44%)
CMYKcmyk(60.2%, 55.8%, 0%, 55.7%)
CIE-LABlab(23.77, 18.40, -37.24)
CIE-LCHlch(23.77, 41.54, 296.30°)
OKLaboklab(35.01% 0.0111 -0.1066)
OKLCHoklch(35.01% 0.107 275.9)
XYZxyz(5.2025, 4.0310, 16.1235)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3271 #716C2D
analogous
#2D5471 #2D3271 #4A2D71
triadic
#2D3271 #712D32 #32712D
tetradic
#2D3271 #712D54 #716C2D #2D714A
square
#2D3271 #712D54 #716C2D #2D714A
split-complementary
#2D3271 #714A2D #54712D
monochromatic
#0A0B19 #1C1F45 #2D3271 #3E459D #5B62BE

Accessibility & contrast

On white

11.63
#2D3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2D3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3271
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3271#FFFFFF#000000##FFFFFF
##2D32711.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3C73
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#03404C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d3271;
/* rgb */ color: rgb(45, 50, 113);
/* oklch */ color: oklch(35.0% 0.107 275.9);
Tailwind
colors: {
  custom: {
    50: '#6d699a',
    500: '#2d3271',
    950: '#000000',
  },
}
SCSS
$custom: #2d3271;
$custom-light: #6d699a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3271",
  "rgb": {
    "r": 45,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 235.588,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35007,
    "c": 0.10719,
    "h": 275.9
  },
  "luminance": 0.04031
}

Semantic roles & 50–950 ramp

primary
#2D3271
secondary
#A39D57
accent
#CA55D3
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2D3271

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

Preview Lab → · Contrast checker → · Palette generator →

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