#1B237F#1B237F

#1B237F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.152 H 270.7°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#1B237F
RGBrgb(27, 35, 127)
HSLhsl(235, 65%, 30%)
HSVhsv(235, 79%, 50%)
CMYKcmyk(78.7%, 72.4%, 0%, 50.2%)
CIE-LABlab(19.91, 31.08, -52.51)
CIE-LCHlch(19.91, 61.02, 300.62°)
OKLaboklab(32.24% 0.0017 -0.152)
OKLCHoklch(32.24% 0.152 270.7)
XYZxyz(4.8825, 2.9669, 20.3899)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B237F #7F771B
analogous
#1B557F #1B237F #451B7F
triadic
#1B237F #7F1B23 #237F1B
tetradic
#1B237F #7F1B55 #7F771B #1B7F45
square
#1B237F #7F1B55 #7F771B #1B7F45
split-complementary
#1B237F #7F451B #557F1B
monochromatic
#06071A #10154D #1B237F #2631B1 #3E4AD6

Accessibility & contrast

On white

13.18
#1B237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1B237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B237F
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B237F#FFFFFF#000000##FFFFFF
##1B237F1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b237f;
/* rgb */ color: rgb(27, 35, 127);
/* oklch */ color: oklch(32.2% 0.152 270.7);
Tailwind
colors: {
  custom: {
    50: '#6a5ea5',
    500: '#1b237f',
    950: '#000000',
  },
}
SCSS
$custom: #1b237f;
$custom-light: #6a5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b237f",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 235.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32236,
    "c": 0.15201,
    "h": 270.7
  },
  "luminance": 0.02967
}

Semantic roles & 50–950 ramp

primary
#1B237F
secondary
#B3AA43
accent
#DA40E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B237F

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

Preview Lab → · Contrast checker → · Palette generator →

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