#2B398D#2B398D

#2B398D is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.6% C 0.140 H 271.1°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#2B398D
RGBrgb(43, 57, 141)
HSLhsl(231, 53%, 36%)
HSVhsv(231, 70%, 55%)
CMYKcmyk(69.5%, 59.6%, 0%, 44.7%)
CIE-LABlab(27.74, 23.65, -48.42)
CIE-LCHlch(27.74, 53.89, 296.04°)
OKLaboklab(38.63% 0.0028 -0.1395)
OKLCHoklch(38.63% 0.14 271.1)
XYZxyz(7.2655, 5.3622, 25.8463)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B398D #8D7F2B
analogous
#2B6A8D #2B398D #4E2B8D
triadic
#2B398D #8D2B39 #398D2B
tetradic
#2B398D #8D2B6A #8D7F2B #2B8D4E
square
#2B398D #8D2B6A #8D7F2B #2B8D4E
split-complementary
#2B398D #8D4E2B #6A8D2B
monochromatic
#0E132F #1D265E #2B398D #394CBC #6372CF

Accessibility & contrast

On white

10.13
#2B398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2B398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B398D
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B398D#FFFFFF#000000##FFFFFF
##2B398D1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2b398d;
/* rgb */ color: rgb(43, 57, 141);
/* oklch */ color: oklch(38.6% 0.140 271.1);
Tailwind
colors: {
  custom: {
    50: '#716faf',
    500: '#2b398d',
    950: '#000000',
  },
}
SCSS
$custom: #2b398d;
$custom-light: #716faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b398d",
  "rgb": {
    "r": 43,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 231.429,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38627,
    "c": 0.1395,
    "h": 271.1
  },
  "luminance": 0.05363
}

Semantic roles & 50–950 ramp

primary
#2B398D
secondary
#B6A95E
accent
#C84BDD
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2B398D

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

Preview Lab → · Contrast checker → · Palette generator →

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