#1B238B#1B238B

#1B238B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.168 H 270.0°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#1B238B
RGBrgb(27, 35, 139)
HSLhsl(236, 67%, 33%)
HSVhsv(236, 81%, 55%)
CMYKcmyk(80.6%, 74.8%, 0%, 45.5%)
CIE-LABlab(21.20, 35.49, -57.93)
CIE-LCHlch(21.20, 67.94, 301.49°)
OKLaboklab(33.55% 0.0001 -0.1678)
OKLCHoklch(33.55% 0.168 270)
XYZxyz(5.7116, 3.2985, 24.7567)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B238B #8B831B
analogous
#1B5B8B #1B238B #4B1B8B
triadic
#1B238B #8B1B23 #238B1B
tetradic
#1B238B #8B1B5B #8B831B #1B8B4B
square
#1B238B #8B1B5B #8B831B #1B8B4B
split-complementary
#1B238B #8B4B1B #5B8B1B
monochromatic
#070925 #111658 #1B238B #2530BE #4550DB

Accessibility & contrast

On white

12.65
#1B238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1B238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B238B
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B238B#FFFFFF#000000##FFFFFF
##1B238B1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b238b;
/* rgb */ color: rgb(27, 35, 139);
/* oklch */ color: oklch(33.5% 0.168 270.0);
Tailwind
colors: {
  custom: {
    50: '#6d5fae',
    500: '#1b238b',
    950: '#000000',
  },
}
SCSS
$custom: #1b238b;
$custom-light: #6d5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#1b238b",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 235.714,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33549,
    "c": 0.16778,
    "h": 270
  },
  "luminance": 0.03299
}

Semantic roles & 50–950 ramp

primary
#1B238B
secondary
#BCB445
accent
#DE3DEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B238B

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

Preview Lab → · Contrast checker → · Palette generator →

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