#1B337C#1B337C

#1B337C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.1% C 0.128 H 266.1°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#1B337C
RGBrgb(27, 51, 124)
HSLhsl(225, 64%, 30%)
HSVhsv(225, 78%, 49%)
CMYKcmyk(78.2%, 58.9%, 0%, 51.4%)
CIE-LABlab(23.85, 18.91, -44.16)
CIE-LCHlch(23.85, 48.03, 293.18°)
OKLaboklab(35.06% -0.0088 -0.1274)
OKLCHoklch(35.06% 0.128 266.1)
XYZxyz(5.2726, 4.0553, 19.5697)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B337C #7C641B
analogous
#1B637C #1B337C #341B7C
triadic
#1B337C #7C1B33 #337C1B
tetradic
#1B337C #7C1B63 #7C641B #1B7C34
square
#1B337C #7C1B63 #7C641B #1B7C34
split-complementary
#1B337C #7C341B #637C1B
monochromatic
#050A19 #101E4A #1B337C #2648AE #3D62D5

Accessibility & contrast

On white

11.59
#1B337C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1B337C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B337C
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B337C#FFFFFF#000000##FFFFFF
##1B337C1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7E
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1b337c;
/* rgb */ color: rgb(27, 51, 124);
/* oklch */ color: oklch(35.1% 0.128 266.1);
Tailwind
colors: {
  custom: {
    50: '#676aa3',
    500: '#1b337c',
    950: '#000000',
  },
}
SCSS
$custom: #1b337c;
$custom-light: #676aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b337c",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 124
  },
  "hsl": {
    "h": 225.155,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35055,
    "c": 0.12769,
    "h": 266.1
  },
  "luminance": 0.04056
}

Semantic roles & 50–950 ramp

primary
#1B337C
secondary
#B09543
accent
#BE41E7
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B337C

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

Preview Lab → · Contrast checker → · Palette generator →

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