#1B398E#1B398E

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

Color values

HEX#1B398E
RGBrgb(27, 57, 142)
HSLhsl(224, 68%, 33%)
HSVhsv(224, 81%, 56%)
CMYKcmyk(81%, 59.9%, 0%, 44.3%)
CIE-LABlab(27.05, 21.97, -50.20)
CIE-LCHlch(27.05, 54.79, 293.63°)
OKLaboklab(37.92% -0.0123 -0.145)
OKLCHoklch(37.92% 0.146 265.2)
XYZxyz(6.7959, 5.1115, 26.2144)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B398E #8E701B
analogous
#1B728E #1B398E #371B8E
triadic
#1B398E #8E1B39 #398E1B
tetradic
#1B398E #8E1B72 #8E701B #1B8E37
square
#1B398E #8E1B72 #8E701B #1B8E37
split-complementary
#1B398E #8E371B #728E1B
monochromatic
#071027 #11245B #1B398E #254EC1 #476EDC

Accessibility & contrast

On white

10.38
#1B398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B398E
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B398E#FFFFFF#000000##FFFFFF
##1B398E1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b398e;
/* rgb */ color: rgb(27, 57, 142);
/* oklch */ color: oklch(37.9% 0.146 265.2);
Tailwind
colors: {
  custom: {
    50: '#6c6eb0',
    500: '#1b398e',
    950: '#000000',
  },
}
SCSS
$custom: #1b398e;
$custom-light: #6c6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b398e",
  "rgb": {
    "r": 27,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 224.348,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37923,
    "c": 0.14555,
    "h": 265.2
  },
  "luminance": 0.05112
}

Semantic roles & 50–950 ramp

primary
#1B398E
secondary
#BE9F47
accent
#BE3DEB
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1B398E

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

Preview Lab → · Contrast checker → · Palette generator →

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