#1B398C#1B398C

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

Color values

HEX#1B398C
RGBrgb(27, 57, 140)
HSLhsl(224, 68%, 33%)
HSVhsv(224, 81%, 55%)
CMYKcmyk(80.7%, 59.3%, 0%, 45.1%)
CIE-LABlab(26.88, 21.16, -49.23)
CIE-LCHlch(26.88, 53.59, 293.26°)
OKLaboklab(37.74% -0.0124 -0.1422)
OKLCHoklch(37.74% 0.143 265)
XYZxyz(6.6471, 5.0519, 25.4307)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B398C #8C6E1B
analogous
#1B718C #1B398C #361B8C
triadic
#1B398C #8C1B39 #398C1B
tetradic
#1B398C #8C1B71 #8C6E1B #1B8C36
square
#1B398C #8C1B71 #8C6E1B #1B8C36
split-complementary
#1B398C #8C361B #718C1B
monochromatic
#070F25 #112459 #1B398C #254EBF #466EDB

Accessibility & contrast

On white

10.44
#1B398C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1B398C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B398C
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B398C#FFFFFF#000000##FFFFFF
##1B398C1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1b398c;
/* rgb */ color: rgb(27, 57, 140);
/* oklch */ color: oklch(37.7% 0.143 265.0);
Tailwind
colors: {
  custom: {
    50: '#6b6eae',
    500: '#1b398c',
    950: '#000000',
  },
}
SCSS
$custom: #1b398c;
$custom-light: #6b6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#1b398c",
  "rgb": {
    "r": 27,
    "g": 57,
    "b": 140
  },
  "hsl": {
    "h": 224.071,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37745,
    "c": 0.14274,
    "h": 265
  },
  "luminance": 0.05053
}

Semantic roles & 50–950 ramp

primary
#1B398C
secondary
#BD9D46
accent
#BD3DEB
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1B398C

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

Preview Lab → · Contrast checker → · Palette generator →

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