#2D396F#2D396F

#2D396F is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.4% C 0.094 H 271.6°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2D396F
RGBrgb(45, 57, 111)
HSLhsl(229, 42%, 31%)
HSVhsv(229, 59%, 44%)
CMYKcmyk(59.5%, 48.6%, 0%, 56.5%)
CIE-LABlab(25.66, 12.82, -32.93)
CIE-LCHlch(25.66, 35.34, 291.27°)
OKLaboklab(36.39% 0.0026 -0.0939)
OKLCHoklch(36.39% 0.094 271.6)
XYZxyz(5.4136, 4.6314, 15.6445)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D396F #6F632D
analogous
#2D5A6F #2D396F #422D6F
triadic
#2D396F #6F2D39 #396F2D
tetradic
#2D396F #6F2D5A #6F632D #2D6F42
square
#2D396F #6F2D5A #6F632D #2D6F42
split-complementary
#2D396F #6F422D #5A6F2D
monochromatic
#0A0C18 #1B2343 #2D396F #3F4F9B #5A6CBC

Accessibility & contrast

On white

10.90
#2D396F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2D396F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D396F
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D396F#FFFFFF#000000##FFFFFF
##2D396F1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204071
Deuteranopia (green-blind)
#173A6E
Tritanopia (blue-blind)
#05454E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d396f;
/* rgb */ color: rgb(45, 57, 111);
/* oklch */ color: oklch(36.4% 0.094 271.6);
Tailwind
colors: {
  custom: {
    50: '#6c6f99',
    500: '#2d396f',
    950: '#000000',
  },
}
SCSS
$custom: #2d396f;
$custom-light: #6c6f99;
$custom-dark: #000000;
JSON
{
  "hex": "#2d396f",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 111
  },
  "hsl": {
    "h": 229.091,
    "s": 42.308,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36387,
    "c": 0.0939,
    "h": 271.6
  },
  "luminance": 0.04632
}

Semantic roles & 50–950 ramp

primary
#2D396F
secondary
#A19357
accent
#BB56D2
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2D396F

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

Preview Lab → · Contrast checker → · Palette generator →

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