#1B238E#1B238E

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

Color values

HEX#1B238E
RGBrgb(27, 35, 142)
HSLhsl(236, 68%, 33%)
HSVhsv(236, 81%, 56%)
CMYKcmyk(81%, 75.4%, 0%, 44.3%)
CIE-LABlab(21.53, 36.57, -59.25)
CIE-LCHlch(21.53, 69.63, 301.68°)
OKLaboklab(33.88% -0.0004 -0.1716)
OKLCHoklch(33.88% 0.172 269.9)
XYZxyz(5.9338, 3.3874, 25.9270)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B238E #8E861B
analogous
#1B5C8E #1B238E #4C1B8E
triadic
#1B238E #8E1B23 #238E1B
tetradic
#1B238E #8E1B5C #8E861B #1B8E4C
square
#1B238E #8E1B5C #8E861B #1B8E4C
split-complementary
#1B238E #8E4C1B #5C8E1B
monochromatic
#070A27 #11165B #1B238E #2530C1 #4752DC

Accessibility & contrast

On white

12.52
#1B238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B238E
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B238E#FFFFFF#000000##FFFFFF
##1B238E1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b238e;
/* rgb */ color: rgb(27, 35, 142);
/* oklch */ color: oklch(33.9% 0.172 269.9);
Tailwind
colors: {
  custom: {
    50: '#6e5fb0',
    500: '#1b238e',
    950: '#000000',
  },
}
SCSS
$custom: #1b238e;
$custom-light: #6e5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b238e",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 235.826,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33884,
    "c": 0.17163,
    "h": 269.9
  },
  "luminance": 0.03388
}

Semantic roles & 50–950 ramp

primary
#1B238E
secondary
#BEB547
accent
#DF3DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #1B238E

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

Preview Lab → · Contrast checker → · Palette generator →

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