#1B338F#1B338F

#1B338F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.8% C 0.155 H 266.9°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#1B338F
RGBrgb(27, 51, 143)
HSLhsl(228, 68%, 33%)
HSVhsv(228, 81%, 56%)
CMYKcmyk(81.1%, 64.3%, 0%, 43.9%)
CIE-LABlab(25.51, 26.50, -53.33)
CIE-LCHlch(25.51, 59.55, 296.42°)
OKLaboklab(36.81% -0.0084 -0.1543)
OKLCHoklch(36.81% 0.155 266.9)
XYZxyz(6.5920, 4.5831, 26.5185)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B338F #8F771B
analogous
#1B6D8F #1B338F #3D1B8F
triadic
#1B338F #8F1B33 #338F1B
tetradic
#1B338F #8F1B6D #8F771B #1B8F3D
square
#1B338F #8F1B6D #8F771B #1B8F3D
split-complementary
#1B338F #8F3D1B #6D8F1B
monochromatic
#080E28 #11215C #1B338F #2545C2 #4867DC

Accessibility & contrast

On white

10.96
#1B338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#1B338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B338F
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B338F#FFFFFF#000000##FFFFFF
##1B338F1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1b338f;
/* rgb */ color: rgb(27, 51, 143);
/* oklch */ color: oklch(36.8% 0.155 266.9);
Tailwind
colors: {
  custom: {
    50: '#6c6ab1',
    500: '#1b338f',
    950: '#000000',
  },
}
SCSS
$custom: #1b338f;
$custom-light: #6c6ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b338f",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 227.586,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36806,
    "c": 0.15452,
    "h": 266.9
  },
  "luminance": 0.04584
}

Semantic roles & 50–950 ramp

primary
#1B338F
secondary
#BEA648
accent
#C73DEB
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1B338F

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

Preview Lab → · Contrast checker → · Palette generator →

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