#1B2D8C#1B2D8C

#1B2D8C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.158 H 268.2°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#1B2D8C
RGBrgb(27, 45, 140)
HSLhsl(230, 68%, 33%)
HSVhsv(230, 81%, 55%)
CMYKcmyk(80.7%, 67.9%, 0%, 45.1%)
CIE-LABlab(23.68, 29.40, -54.47)
CIE-LCHlch(23.68, 61.90, 298.36°)
OKLaboklab(35.37% -0.0049 -0.1577)
OKLCHoklch(35.37% 0.158 268.2)
XYZxyz(6.1224, 4.0025, 25.2558)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2D8C #8C7A1B
analogous
#1B668C #1B2D8C #411B8C
triadic
#1B2D8C #8C1B2D #2D8C1B
tetradic
#1B2D8C #8C1B66 #8C7A1B #1B8C41
square
#1B2D8C #8C1B66 #8C7A1B #1B8C41
split-complementary
#1B2D8C #8C411B #668C1B
monochromatic
#070C25 #111D59 #1B2D8C #253DBF #465EDB

Accessibility & contrast

On white

11.66
#1B2D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1B2D8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2D8C
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2D8C#FFFFFF#000000##FFFFFF
##1B2D8C1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1b2d8c;
/* rgb */ color: rgb(27, 45, 140);
/* oklch */ color: oklch(35.4% 0.158 268.2);
Tailwind
colors: {
  custom: {
    50: '#6c66af',
    500: '#1b2d8c',
    950: '#000000',
  },
}
SCSS
$custom: #1b2d8c;
$custom-light: #6c66af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2d8c",
  "rgb": {
    "r": 27,
    "g": 45,
    "b": 140
  },
  "hsl": {
    "h": 230.442,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35372,
    "c": 0.15778,
    "h": 268.2
  },
  "luminance": 0.04003
}

Semantic roles & 50–950 ramp

primary
#1B2D8C
secondary
#BDAA46
accent
#CF3DEB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1B2D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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