#1B248D#1B248D

#1B248D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.169 H 269.8°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#1B248D
RGBrgb(27, 36, 141)
HSLhsl(235, 68%, 33%)
HSVhsv(235, 81%, 55%)
CMYKcmyk(80.9%, 74.5%, 0%, 44.7%)
CIE-LABlab(21.64, 35.60, -58.45)
CIE-LCHlch(21.64, 68.43, 301.34°)
OKLaboklab(33.93% -0.0006 -0.1693)
OKLCHoklch(33.93% 0.169 269.8)
XYZxyz(5.8889, 3.4172, 25.5434)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B248D #8D841B
analogous
#1B5D8D #1B248D #4B1B8D
triadic
#1B248D #8D1B24 #248D1B
tetradic
#1B248D #8D1B5D #8D841B #1B8D4B
square
#1B248D #8D1B5D #8D841B #1B8D4B
split-complementary
#1B248D #8D4B1B #5D8D1B
monochromatic
#070A26 #11175A #1B248D #2531C0 #4752DC

Accessibility & contrast

On white

12.47
#1B248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1B248D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B248D
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B248D#FFFFFF#000000##FFFFFF
##1B248D1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b248d;
/* rgb */ color: rgb(27, 36, 141);
/* oklch */ color: oklch(33.9% 0.169 269.8);
Tailwind
colors: {
  custom: {
    50: '#6d5faf',
    500: '#1b248d',
    950: '#000000',
  },
}
SCSS
$custom: #1b248d;
$custom-light: #6d5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#1b248d",
  "rgb": {
    "r": 27,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 235.263,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33929,
    "c": 0.1693,
    "h": 269.8
  },
  "luminance": 0.03418
}

Semantic roles & 50–950 ramp

primary
#1B248D
secondary
#BDB446
accent
#DD3DEB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #1B248D

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

Preview Lab → · Contrast checker → · Palette generator →

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