#1B398B#1B398B

#1B398B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.7% C 0.141 H 265.0°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#1B398B
RGBrgb(27, 57, 139)
HSLhsl(224, 67%, 33%)
HSVhsv(224, 81%, 55%)
CMYKcmyk(80.6%, 59%, 0%, 45.5%)
CIE-LABlab(26.80, 20.76, -48.75)
CIE-LCHlch(26.80, 52.99, 293.07°)
OKLaboklab(37.66% -0.0124 -0.1408)
OKLCHoklch(37.66% 0.141 265)
XYZxyz(6.5737, 5.0226, 25.0441)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B398B #8B6D1B
analogous
#1B718B #1B398B #351B8B
triadic
#1B398B #8B1B39 #398B1B
tetradic
#1B398B #8B1B71 #8B6D1B #1B8B35
square
#1B398B #8B1B71 #8B6D1B #1B8B35
split-complementary
#1B398B #8B351B #718B1B
monochromatic
#070F25 #112458 #1B398B #254EBE #456DDB

Accessibility & contrast

On white

10.48
#1B398B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#1B398B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B398B
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B398B#FFFFFF#000000##FFFFFF
##1B398B1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1b398b;
/* rgb */ color: rgb(27, 57, 139);
/* oklch */ color: oklch(37.7% 0.141 265.0);
Tailwind
colors: {
  custom: {
    50: '#6b6eae',
    500: '#1b398b',
    950: '#000000',
  },
}
SCSS
$custom: #1b398b;
$custom-light: #6b6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#1b398b",
  "rgb": {
    "r": 27,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 223.929,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37657,
    "c": 0.14133,
    "h": 265
  },
  "luminance": 0.05023
}

Semantic roles & 50–950 ramp

primary
#1B398B
secondary
#BC9D45
accent
#BC3DEA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1B398B

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

Preview Lab → · Contrast checker → · Palette generator →

#1B398B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva