#2C397F#2C397F

#2C397F is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.5% C 0.119 H 271.6°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#2C397F
RGBrgb(44, 57, 127)
HSLhsl(231, 49%, 34%)
HSVhsv(231, 65%, 50%)
CMYKcmyk(65.4%, 55.1%, 0%, 50.2%)
CIE-LABlab(26.72, 18.56, -41.36)
CIE-LCHlch(26.72, 45.34, 294.17°)
OKLaboklab(37.53% 0.0033 -0.1187)
OKLCHoklch(37.53% 0.119 271.6)
XYZxyz(6.3313, 4.9935, 20.7047)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C397F #7F722C
analogous
#2C627F #2C397F #482C7F
triadic
#2C397F #7F2C39 #397F2C
tetradic
#2C397F #7F2C62 #7F722C #2C7F48
square
#2C397F #7F2C62 #7F722C #2C7F48
split-complementary
#2C397F #7F482C #627F2C
monochromatic
#0D1024 #1C2552 #2C397F #3C4DAC #5E6FC7

Accessibility & contrast

On white

10.51
#2C397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2C397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C397F
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C397F#FFFFFF#000000##FFFFFF
##2C397F1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4381
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2c397f;
/* rgb */ color: rgb(44, 57, 127);
/* oklch */ color: oklch(37.5% 0.119 271.6);
Tailwind
colors: {
  custom: {
    50: '#6f6fa5',
    500: '#2c397f',
    950: '#000000',
  },
}
SCSS
$custom: #2c397f;
$custom-light: #6f6fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c397f",
  "rgb": {
    "r": 44,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 230.602,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37531,
    "c": 0.11874,
    "h": 271.6
  },
  "luminance": 0.04994
}

Semantic roles & 50–950 ramp

primary
#2C397F
secondary
#ADA059
accent
#C350D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2C397F

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

Preview Lab → · Contrast checker → · Palette generator →

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