#1B237D#1B237D

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

Color values

HEX#1B237D
RGBrgb(27, 35, 125)
HSLhsl(235, 64%, 30%)
HSVhsv(235, 78%, 49%)
CMYKcmyk(78.4%, 72%, 0%, 51%)
CIE-LABlab(19.70, 30.33, -51.58)
CIE-LCHlch(19.70, 59.84, 300.46°)
OKLaboklab(32.02% 0.002 -0.1493)
OKLCHoklch(32.02% 0.149 270.8)
XYZxyz(4.7534, 2.9152, 19.7102)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B237D #7D751B
analogous
#1B547D #1B237D #441B7D
triadic
#1B237D #7D1B23 #237D1B
tetradic
#1B237D #7D1B54 #7D751B #1B7D44
square
#1B237D #7D1B54 #7D751B #1B7D44
split-complementary
#1B237D #7D441B #547D1B
monochromatic
#050719 #10154B #1B237D #2631AF #3D4AD5

Accessibility & contrast

On white

13.26
#1B237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B237D
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B237D#FFFFFF#000000##FFFFFF
##1B237D1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b237d;
/* rgb */ color: rgb(27, 35, 125);
/* oklch */ color: oklch(32.0% 0.149 270.8);
Tailwind
colors: {
  custom: {
    50: '#695ea4',
    500: '#1b237d',
    950: '#000000',
  },
}
SCSS
$custom: #1b237d;
$custom-light: #695ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b237d",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 235.102,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32022,
    "c": 0.14931,
    "h": 270.8
  },
  "luminance": 0.02916
}

Semantic roles & 50–950 ramp

primary
#1B237D
secondary
#B1A843
accent
#DA40E7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B237D

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

Preview Lab → · Contrast checker → · Palette generator →

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