#2B397C#2B397C

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

Color values

HEX#2B397C
RGBrgb(43, 57, 124)
HSLhsl(230, 49%, 33%)
HSVhsv(230, 65%, 49%)
CMYKcmyk(65.3%, 54%, 0%, 51.4%)
CIE-LABlab(26.43, 17.25, -39.94)
CIE-LCHlch(26.43, 43.50, 293.36°)
OKLaboklab(37.23% 0.0019 -0.1145)
OKLCHoklch(37.23% 0.115 271)
XYZxyz(6.0963, 4.8946, 19.6884)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B397C #7C6E2B
analogous
#2B617C #2B397C #462B7C
triadic
#2B397C #7C2B39 #397C2B
tetradic
#2B397C #7C2B61 #7C6E2B #2B7C46
square
#2B397C #7C2B61 #7C6E2B #2B7C46
split-complementary
#2B397C #7C462B #617C2B
monochromatic
#0B0F21 #1B244F #2B397C #3B4EA9 #5B6EC6

Accessibility & contrast

On white

10.61
#2B397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2B397C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B397C
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B397C#FFFFFF#000000##FFFFFF
##2B397C1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11427E
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2b397c;
/* rgb */ color: rgb(43, 57, 124);
/* oklch */ color: oklch(37.2% 0.115 271.0);
Tailwind
colors: {
  custom: {
    50: '#6d6fa2',
    500: '#2b397c',
    950: '#000000',
  },
}
SCSS
$custom: #2b397c;
$custom-light: #6d6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b397c",
  "rgb": {
    "r": 43,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 229.63,
    "s": 48.503,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3723,
    "c": 0.11454,
    "h": 271
  },
  "luminance": 0.04895
}

Semantic roles & 50–950 ramp

primary
#2B397C
secondary
#AC9D57
accent
#C150D8
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2B397C

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

Preview Lab → · Contrast checker → · Palette generator →

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