#2B397B#2B397B

#2B397B is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.2% C 0.113 H 270.9°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#2B397B
RGBrgb(43, 57, 123)
HSLhsl(230, 48%, 33%)
HSVhsv(230, 65%, 48%)
CMYKcmyk(65%, 53.7%, 0%, 51.8%)
CIE-LABlab(26.36, 16.87, -39.42)
CIE-LCHlch(26.36, 42.88, 293.17°)
OKLaboklab(37.15% 0.0018 -0.113)
OKLCHoklch(37.15% 0.113 270.9)
XYZxyz(6.0333, 4.8694, 19.3570)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B397B #7B6D2B
analogous
#2B617B #2B397B #452B7B
triadic
#2B397B #7B2B39 #397B2B
tetradic
#2B397B #7B2B61 #7B6D2B #2B7B45
square
#2B397B #7B2B61 #7B6D2B #2B7B45
split-complementary
#2B397B #7B452B #617B2B
monochromatic
#0B0F20 #1B244E #2B397B #3B4EA8 #5B6DC6

Accessibility & contrast

On white

10.64
#2B397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B397B
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B397B#FFFFFF#000000##FFFFFF
##2B397B1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12427D
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b397b;
/* rgb */ color: rgb(43, 57, 123);
/* oklch */ color: oklch(37.2% 0.113 270.9);
Tailwind
colors: {
  custom: {
    50: '#6d6fa2',
    500: '#2b397b',
    950: '#000000',
  },
}
SCSS
$custom: #2b397b;
$custom-light: #6d6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b397b",
  "rgb": {
    "r": 43,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 229.5,
    "s": 48.193,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37152,
    "c": 0.11303,
    "h": 270.9
  },
  "luminance": 0.0487
}

Semantic roles & 50–950 ramp

primary
#2B397B
secondary
#AB9D56
accent
#C050D8
background
#F6F6FA
surface
#ECECF3
border
#C7C7CD
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2B397B

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

Preview Lab → · Contrast checker → · Palette generator →

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