#1B3F98#1B3F98

#1B3F98 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.152 H 264.0°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#1B3F98
RGBrgb(27, 63, 152)
HSLhsl(223, 70%, 35%)
HSVhsv(223, 82%, 60%)
CMYKcmyk(82.2%, 58.6%, 0%, 40.4%)
CIE-LABlab(29.55, 21.83, -52.26)
CIE-LCHlch(29.55, 56.64, 292.67°)
OKLaboklab(40.06% -0.0158 -0.151)
OKLCHoklch(40.06% 0.152 264)
XYZxyz(7.8950, 6.0541, 30.4521)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3F98 #98741B
analogous
#1B7D98 #1B3F98 #361B98
triadic
#1B3F98 #981B3F #3F981B
tetradic
#1B3F98 #981B7D #98741B #1B9836
square
#1B3F98 #981B7D #98741B #1B9836
split-complementary
#1B3F98 #98361B #7D981B
monochromatic
#091430 #122964 #1B3F98 #2455CC #4E78E0

Accessibility & contrast

On white

9.50
#1B3F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#1B3F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3F98
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3F98#FFFFFF#000000##FFFFFF
##1B3F981.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1b3f98;
/* rgb */ color: rgb(27, 63, 152);
/* oklch */ color: oklch(40.1% 0.152 264.0);
Tailwind
colors: {
  custom: {
    50: '#6e73b7',
    500: '#1b3f98',
    950: '#000000',
  },
}
SCSS
$custom: #1b3f98;
$custom-light: #6e73b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3f98",
  "rgb": {
    "r": 27,
    "g": 63,
    "b": 152
  },
  "hsl": {
    "h": 222.72,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40058,
    "c": 0.15182,
    "h": 264
  },
  "luminance": 0.06055
}

Semantic roles & 50–950 ramp

primary
#1B3F98
secondary
#C2A04D
accent
#BA3BED
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1B3F98

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

Preview Lab → · Contrast checker → · Palette generator →

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