#1B237C#1B237C

#1B237C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.148 H 270.8°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#1B237C
RGBrgb(27, 35, 124)
HSLhsl(235, 64%, 30%)
HSVhsv(235, 78%, 49%)
CMYKcmyk(78.2%, 71.8%, 0%, 51.4%)
CIE-LABlab(19.60, 29.96, -51.12)
CIE-LCHlch(19.60, 59.25, 300.37°)
OKLaboklab(31.92% 0.0021 -0.1479)
OKLCHoklch(31.92% 0.148 270.8)
XYZxyz(4.6899, 2.8898, 19.3755)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B237C #7C741B
analogous
#1B537C #1B237C #441B7C
triadic
#1B237C #7C1B23 #237C1B
tetradic
#1B237C #7C1B53 #7C741B #1B7C44
square
#1B237C #7C1B53 #7C741B #1B7C44
split-complementary
#1B237C #7C441B #537C1B
monochromatic
#050719 #10154A #1B237C #2631AE #3D49D5

Accessibility & contrast

On white

13.31
#1B237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1B237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B237C
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B237C#FFFFFF#000000##FFFFFF
##1B237C1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b237c;
/* rgb */ color: rgb(27, 35, 124);
/* oklch */ color: oklch(31.9% 0.148 270.8);
Tailwind
colors: {
  custom: {
    50: '#695ea3',
    500: '#1b237c',
    950: '#000000',
  },
}
SCSS
$custom: #1b237c;
$custom-light: #695ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b237c",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 235.052,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31915,
    "c": 0.14796,
    "h": 270.8
  },
  "luminance": 0.0289
}

Semantic roles & 50–950 ramp

primary
#1B237C
secondary
#B0A743
accent
#D941E7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B237C

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

Preview Lab → · Contrast checker → · Palette generator →

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