#1B238D#1B238D

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

Color values

HEX#1B238D
RGBrgb(27, 35, 141)
HSLhsl(236, 68%, 33%)
HSVhsv(236, 81%, 55%)
CMYKcmyk(80.9%, 75.2%, 0%, 44.7%)
CIE-LABlab(21.42, 36.21, -58.81)
CIE-LCHlch(21.42, 69.07, 301.62°)
OKLaboklab(33.77% -0.0002 -0.1703)
OKLCHoklch(33.77% 0.17 269.9)
XYZxyz(5.8591, 3.3575, 25.5334)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B238D #8D851B
analogous
#1B5C8D #1B238D #4C1B8D
triadic
#1B238D #8D1B23 #238D1B
tetradic
#1B238D #8D1B5C #8D851B #1B8D4C
square
#1B238D #8D1B5C #8D851B #1B8D4C
split-complementary
#1B238D #8D4C1B #5C8D1B
monochromatic
#070A26 #11165A #1B238D #2530C0 #4751DC

Accessibility & contrast

On white

12.56
#1B238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1B238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B238D
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B238D#FFFFFF#000000##FFFFFF
##1B238D1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b238d;
/* rgb */ color: rgb(27, 35, 141);
/* oklch */ color: oklch(33.8% 0.170 269.9);
Tailwind
colors: {
  custom: {
    50: '#6d5faf',
    500: '#1b238d',
    950: '#000000',
  },
}
SCSS
$custom: #1b238d;
$custom-light: #6d5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#1b238d",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 235.789,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33772,
    "c": 0.17035,
    "h": 269.9
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#1B238D
secondary
#BDB546
accent
#DF3DEB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080411
muted
#7B7980

Preview Lab

Preview with #1B238D

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

Preview Lab → · Contrast checker → · Palette generator →

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