#1B339F#1B339F

#1B339F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.176 H 267.1°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#1B339F
RGBrgb(27, 51, 159)
HSLhsl(229, 71%, 36%)
HSVhsv(229, 83%, 62%)
CMYKcmyk(83%, 67.9%, 0%, 37.6%)
CIE-LABlab(27.03, 32.67, -60.65)
CIE-LCHlch(27.03, 68.89, 298.31°)
OKLaboklab(38.38% -0.009 -0.1757)
OKLCHoklch(38.38% 0.176 267.1)
XYZxyz(7.8916, 5.1029, 33.3632)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B339F #9F871B
analogous
#1B759F #1B339F #451B9F
triadic
#1B339F #9F1B33 #339F1B
tetradic
#1B339F #9F1B75 #9F871B #1B9F45
square
#1B339F #9F1B75 #9F871B #1B9F45
split-complementary
#1B339F #9F451B #759F1B
monochromatic
#091136 #12226B #1B339F #2444D3 #536DE2

Accessibility & contrast

On white

10.39
#1B339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B339F
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B339F#FFFFFF#000000##FFFFFF
##1B339F1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1b339f;
/* rgb */ color: rgb(27, 51, 159);
/* oklch */ color: oklch(38.4% 0.176 267.1);
Tailwind
colors: {
  custom: {
    50: '#716abc',
    500: '#1b339f',
    950: '#000000',
  },
}
SCSS
$custom: #1b339f;
$custom-light: #716abc;
$custom-dark: #000000;
JSON
{
  "hex": "#1b339f",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 229.091,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38381,
    "c": 0.17594,
    "h": 267.1
  },
  "luminance": 0.05104
}

Semantic roles & 50–950 ramp

primary
#1B339F
secondary
#C5B051
accent
#CD3AEE
background
#F7F6FB
surface
#EDEBF7
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1B339F

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

Preview Lab → · Contrast checker → · Palette generator →

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