#1B398F#1B398F

#1B398F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.0% C 0.147 H 265.2°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#1B398F
RGBrgb(27, 57, 143)
HSLhsl(224, 68%, 33%)
HSVhsv(224, 81%, 56%)
CMYKcmyk(81.1%, 60.1%, 0%, 43.9%)
CIE-LABlab(27.13, 22.37, -50.68)
CIE-LCHlch(27.13, 55.39, 293.82°)
OKLaboklab(38.01% -0.0122 -0.1464)
OKLCHoklch(38.01% 0.147 265.2)
XYZxyz(6.8713, 5.1416, 26.6116)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B398F #8F711B
analogous
#1B738F #1B398F #371B8F
triadic
#1B398F #8F1B39 #398F1B
tetradic
#1B398F #8F1B73 #8F711B #1B8F37
square
#1B398F #8F1B73 #8F711B #1B8F37
split-complementary
#1B398F #8F371B #738F1B
monochromatic
#081028 #11245C #1B398F #254EC2 #486EDC

Accessibility & contrast

On white

10.35
#1B398F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1B398F on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1B398F#FFFFFF#000000##FFFFFF
##1B398F1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1b398f;
/* rgb */ color: rgb(27, 57, 143);
/* oklch */ color: oklch(38.0% 0.147 265.2);
Tailwind
colors: {
  custom: {
    50: '#6c6eb1',
    500: '#1b398f',
    950: '#000000',
  },
}
SCSS
$custom: #1b398f;
$custom-light: #6c6eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b398f",
  "rgb": {
    "r": 27,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 224.483,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38013,
    "c": 0.14695,
    "h": 265.2
  },
  "luminance": 0.05142
}

Semantic roles & 50–950 ramp

primary
#1B398F
secondary
#BEA048
accent
#BE3DEB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1B398F

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

Preview Lab → · Contrast checker → · Palette generator →

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