#2B397F#2B397F

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

Color values

HEX#2B397F
RGBrgb(43, 57, 127)
HSLhsl(230, 49%, 33%)
HSVhsv(230, 66%, 50%)
CMYKcmyk(66.1%, 55.1%, 0%, 50.2%)
CIE-LABlab(26.65, 18.38, -41.46)
CIE-LCHlch(26.65, 45.36, 293.91°)
OKLaboklab(37.47% 0.0022 -0.119)
OKLCHoklch(37.47% 0.119 271)
XYZxyz(6.2889, 4.9716, 20.7028)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B397F #7F712B
analogous
#2B637F #2B397F #472B7F
triadic
#2B397F #7F2B39 #397F2B
tetradic
#2B397F #7F2B63 #7F712B #2B7F47
square
#2B397F #7F2B63 #7F712B #2B7F47
split-complementary
#2B397F #7F472B #637F2B
monochromatic
#0C1024 #1C2451 #2B397F #3A4EAD #5C6EC8

Accessibility & contrast

On white

10.53
#2B397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2B397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B397F
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B397F#FFFFFF#000000##FFFFFF
##2B397F1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b397f;
/* rgb */ color: rgb(43, 57, 127);
/* oklch */ color: oklch(37.5% 0.119 271.0);
Tailwind
colors: {
  custom: {
    50: '#6e6fa5',
    500: '#2b397f',
    950: '#000000',
  },
}
SCSS
$custom: #2b397f;
$custom-light: #6e6fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b397f",
  "rgb": {
    "r": 43,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 230,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37468,
    "c": 0.11904,
    "h": 271
  },
  "luminance": 0.04972
}

Semantic roles & 50–950 ramp

primary
#2B397F
secondary
#AEA058
accent
#C24FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2B397F

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

Preview Lab → · Contrast checker → · Palette generator →

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