#2B398F#2B398F

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

Color values

HEX#2B398F
RGBrgb(43, 57, 143)
HSLhsl(232, 54%, 36%)
HSVhsv(232, 70%, 56%)
CMYKcmyk(69.9%, 60.1%, 0%, 43.9%)
CIE-LABlab(27.91, 24.40, -49.39)
CIE-LCHlch(27.91, 55.09, 296.30°)
OKLaboklab(38.8% 0.0028 -0.1423)
OKLCHoklch(38.8% 0.142 271.1)
XYZxyz(7.4156, 5.4223, 26.6371)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B398F #8F812B
analogous
#2B6B8F #2B398F #4F2B8F
triadic
#2B398F #8F2B39 #398F2B
tetradic
#2B398F #8F2B6B #8F812B #2B8F4F
square
#2B398F #8F2B6B #8F812B #2B8F4F
split-complementary
#2B398F #8F4F2B #6B8F2B
monochromatic
#0F1331 #1D2660 #2B398F #394CBE #6473D0

Accessibility & contrast

On white

10.07
#2B398F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2B398F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B398F
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B398F#FFFFFF#000000##FFFFFF
##2B398F1.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2b398f;
/* rgb */ color: rgb(43, 57, 143);
/* oklch */ color: oklch(38.8% 0.142 271.1);
Tailwind
colors: {
  custom: {
    50: '#726fb1',
    500: '#2b398f',
    950: '#000000',
  },
}
SCSS
$custom: #2b398f;
$custom-light: #726fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b398f",
  "rgb": {
    "r": 43,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 231.6,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38799,
    "c": 0.14235,
    "h": 271.1
  },
  "luminance": 0.05423
}

Semantic roles & 50–950 ramp

primary
#2B398F
secondary
#B7AA5F
accent
#C94BDD
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2B398F

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

Preview Lab → · Contrast checker → · Palette generator →

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