#1B268D#1B268D

#1B268D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.167 H 269.5°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#1B268D
RGBrgb(27, 38, 141)
HSLhsl(234, 68%, 33%)
HSVhsv(234, 81%, 55%)
CMYKcmyk(80.9%, 73%, 0%, 44.7%)
CIE-LABlab(22.09, 34.35, -57.70)
CIE-LCHlch(22.09, 67.15, 300.76°)
OKLaboklab(34.25% -0.0015 -0.1671)
OKLCHoklch(34.25% 0.167 269.5)
XYZxyz(5.9512, 3.5416, 25.5641)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B268D #8D821B
analogous
#1B5F8D #1B268D #491B8D
triadic
#1B268D #8D1B26 #268D1B
tetradic
#1B268D #8D1B5F #8D821B #1B8D49
square
#1B268D #8D1B5F #8D821B #1B8D49
split-complementary
#1B268D #8D491B #5F8D1B
monochromatic
#070A26 #11185A #1B268D #2534C0 #4755DC

Accessibility & contrast

On white

12.29
#1B268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1B268D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B268D
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B268D#FFFFFF#000000##FFFFFF
##1B268D1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b268d;
/* rgb */ color: rgb(27, 38, 141);
/* oklch */ color: oklch(34.3% 0.167 269.5);
Tailwind
colors: {
  custom: {
    50: '#6d61af',
    500: '#1b268d',
    950: '#000000',
  },
}
SCSS
$custom: #1b268d;
$custom-light: #6d61af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b268d",
  "rgb": {
    "r": 27,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 234.211,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34253,
    "c": 0.16715,
    "h": 269.5
  },
  "luminance": 0.03542
}

Semantic roles & 50–950 ramp

primary
#1B268D
secondary
#BDB246
accent
#DA3DEB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #1B268D

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

Preview Lab → · Contrast checker → · Palette generator →

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