#2B397E#2B397E

#2B397E is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.4% C 0.118 H 271.0°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#2B397E
RGBrgb(43, 57, 126)
HSLhsl(230, 49%, 33%)
HSVhsv(230, 66%, 49%)
CMYKcmyk(65.9%, 54.8%, 0%, 50.6%)
CIE-LABlab(26.58, 18.00, -40.96)
CIE-LCHlch(26.58, 44.74, 293.73°)
OKLaboklab(37.39% 0.0021 -0.1175)
OKLCHoklch(37.39% 0.118 271)
XYZxyz(6.2240, 4.9457, 20.3612)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B397E #7E702B
analogous
#2B627E #2B397E #472B7E
triadic
#2B397E #7E2B39 #397E2B
tetradic
#2B397E #7E2B62 #7E702B #2B7E47
square
#2B397E #7E2B62 #7E702B #2B7E47
split-complementary
#2B397E #7E472B #627E2B
monochromatic
#0C1023 #1B2450 #2B397E #3B4EAC #5C6EC7

Accessibility & contrast

On white

10.56
#2B397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B397E
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B397E#FFFFFF#000000##FFFFFF
##2B397E1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4380
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2b397e;
/* rgb */ color: rgb(43, 57, 126);
/* oklch */ color: oklch(37.4% 0.118 271.0);
Tailwind
colors: {
  custom: {
    50: '#6e6fa4',
    500: '#2b397e',
    950: '#000000',
  },
}
SCSS
$custom: #2b397e;
$custom-light: #6e6fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b397e",
  "rgb": {
    "r": 43,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 229.88,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37388,
    "c": 0.11755,
    "h": 271
  },
  "luminance": 0.04946
}

Semantic roles & 50–950 ramp

primary
#2B397E
secondary
#AD9F58
accent
#C14FD9
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2B397E

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

Preview Lab → · Contrast checker → · Palette generator →

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