#1B398D#1B398D

#1B398D is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.8% C 0.144 H 265.1°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#1B398D
RGBrgb(27, 57, 141)
HSLhsl(224, 68%, 33%)
HSVhsv(224, 81%, 55%)
CMYKcmyk(80.9%, 59.6%, 0%, 44.7%)
CIE-LABlab(26.97, 21.56, -49.71)
CIE-LCHlch(26.97, 54.19, 293.45°)
OKLaboklab(37.83% -0.0123 -0.1436)
OKLCHoklch(37.83% 0.144 265.1)
XYZxyz(6.7211, 5.0816, 25.8207)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B398D #8D6F1B
analogous
#1B728D #1B398D #361B8D
triadic
#1B398D #8D1B39 #398D1B
tetradic
#1B398D #8D1B72 #8D6F1B #1B8D36
square
#1B398D #8D1B72 #8D6F1B #1B8D36
split-complementary
#1B398D #8D361B #728D1B
monochromatic
#070F26 #11245A #1B398D #254EC0 #476EDC

Accessibility & contrast

On white

10.41
#1B398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#1B398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1B398D#FFFFFF#000000##FFFFFF
##1B398D1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1b398d;
/* rgb */ color: rgb(27, 57, 141);
/* oklch */ color: oklch(37.8% 0.144 265.1);
Tailwind
colors: {
  custom: {
    50: '#6b6eaf',
    500: '#1b398d',
    950: '#000000',
  },
}
SCSS
$custom: #1b398d;
$custom-light: #6b6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#1b398d",
  "rgb": {
    "r": 27,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 224.211,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37834,
    "c": 0.14415,
    "h": 265.1
  },
  "luminance": 0.05082
}

Semantic roles & 50–950 ramp

primary
#1B398D
secondary
#BD9E46
accent
#BD3DEB
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1B398D

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

Preview Lab → · Contrast checker → · Palette generator →

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