#1B398A#1B398A

#1B398A is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.6% C 0.140 H 264.9°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#1B398A
RGBrgb(27, 57, 138)
HSLhsl(224, 67%, 32%)
HSVhsv(224, 80%, 54%)
CMYKcmyk(80.4%, 58.7%, 0%, 45.9%)
CIE-LABlab(26.72, 20.36, -48.26)
CIE-LCHlch(26.72, 52.38, 292.87°)
OKLaboklab(37.57% -0.0125 -0.1394)
OKLCHoklch(37.57% 0.14 264.9)
XYZxyz(6.5009, 4.9935, 24.6610)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B398A #8A6C1B
analogous
#1B708A #1B398A #351B8A
triadic
#1B398A #8A1B39 #398A1B
tetradic
#1B398A #8A1B70 #8A6C1B #1B8A35
square
#1B398A #8A1B70 #8A6C1B #1B8A35
split-complementary
#1B398A #8A351B #708A1B
monochromatic
#070F24 #112457 #1B398A #254EBD #456DDB

Accessibility & contrast

On white

10.51
#1B398A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B398A
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B398A#FFFFFF#000000##FFFFFF
##1B398A1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1b398a;
/* rgb */ color: rgb(27, 57, 138);
/* oklch */ color: oklch(37.6% 0.140 264.9);
Tailwind
colors: {
  custom: {
    50: '#6b6ead',
    500: '#1b398a',
    950: '#000000',
  },
}
SCSS
$custom: #1b398a;
$custom-light: #6b6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#1b398a",
  "rgb": {
    "r": 27,
    "g": 57,
    "b": 138
  },
  "hsl": {
    "h": 223.784,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37569,
    "c": 0.13992,
    "h": 264.9
  },
  "luminance": 0.04994
}

Semantic roles & 50–950 ramp

primary
#1B398A
secondary
#BC9C45
accent
#BC3EEA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1B398A

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

Preview Lab → · Contrast checker → · Palette generator →

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