#2B397A#2B397A

#2B397A is a dark, moderate blue. Relative luminance 0.048; OKLCH L 37.1% C 0.112 H 270.9°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#2B397A
RGBrgb(43, 57, 122)
HSLhsl(229, 48%, 32%)
HSVhsv(229, 65%, 48%)
CMYKcmyk(64.8%, 53.3%, 0%, 52.2%)
CIE-LABlab(26.29, 16.49, -38.91)
CIE-LCHlch(26.29, 42.26, 292.97°)
OKLaboklab(37.07% 0.0017 -0.1115)
OKLCHoklch(37.07% 0.112 270.9)
XYZxyz(5.9711, 4.8445, 19.0290)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B397A #7A6C2B
analogous
#2B617A #2B397A #442B7A
triadic
#2B397A #7A2B39 #397A2B
tetradic
#2B397A #7A2B61 #7A6C2B #2B7A44
square
#2B397A #7A2B61 #7A6C2B #2B7A44
split-complementary
#2B397A #7A442B #617A2B
monochromatic
#0B0F1F #1B244D #2B397A #3B4EA7 #5A6DC5

Accessibility & contrast

On white

10.67
#2B397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2B397A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B397A
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B397A#FFFFFF#000000##FFFFFF
##2B397A1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14427C
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#004853
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b397a;
/* rgb */ color: rgb(43, 57, 122);
/* oklch */ color: oklch(37.1% 0.112 270.9);
Tailwind
colors: {
  custom: {
    50: '#6d6fa1',
    500: '#2b397a',
    950: '#000000',
  },
}
SCSS
$custom: #2b397a;
$custom-light: #6d6fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b397a",
  "rgb": {
    "r": 43,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 229.367,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37074,
    "c": 0.11151,
    "h": 270.9
  },
  "luminance": 0.04845
}

Semantic roles & 50–950 ramp

primary
#2B397A
secondary
#AB9C56
accent
#C050D7
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #2B397A

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

Preview Lab → · Contrast checker → · Palette generator →

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