#1B247F#1B247F

#1B247F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.151 H 270.5°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#1B247F
RGBrgb(27, 36, 127)
HSLhsl(235, 65%, 30%)
HSVhsv(235, 79%, 50%)
CMYKcmyk(78.7%, 71.7%, 0%, 50.2%)
CIE-LABlab(20.15, 30.43, -52.11)
CIE-LCHlch(20.15, 60.35, 300.28°)
OKLaboklab(32.41% 0.0012 -0.1509)
OKLCHoklch(32.41% 0.151 270.5)
XYZxyz(4.9123, 3.0265, 20.3998)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B247F #7F761B
analogous
#1B567F #1B247F #441B7F
triadic
#1B247F #7F1B24 #247F1B
tetradic
#1B247F #7F1B56 #7F761B #1B7F44
square
#1B247F #7F1B56 #7F761B #1B7F44
split-complementary
#1B247F #7F441B #567F1B
monochromatic
#06071A #10164D #1B247F #2632B1 #3E4CD6

Accessibility & contrast

On white

13.08
#1B247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1B247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B247F
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B247F#FFFFFF#000000##FFFFFF
##1B247F1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b247f;
/* rgb */ color: rgb(27, 36, 127);
/* oklch */ color: oklch(32.4% 0.151 270.5);
Tailwind
colors: {
  custom: {
    50: '#695fa5',
    500: '#1b247f',
    950: '#000000',
  },
}
SCSS
$custom: #1b247f;
$custom-light: #695fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b247f",
  "rgb": {
    "r": 27,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 234.6,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32409,
    "c": 0.15085,
    "h": 270.5
  },
  "luminance": 0.03027
}

Semantic roles & 50–950 ramp

primary
#1B247F
secondary
#B3A943
accent
#D940E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B247F

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

Preview Lab → · Contrast checker → · Palette generator →

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