#1B227F#1B227F

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

Color values

HEX#1B227F
RGBrgb(27, 34, 127)
HSLhsl(236, 65%, 30%)
HSVhsv(236, 79%, 50%)
CMYKcmyk(78.7%, 73.2%, 0%, 50.2%)
CIE-LABlab(19.67, 31.73, -52.90)
CIE-LCHlch(19.67, 61.68, 300.96°)
OKLaboklab(32.07% 0.0023 -0.1531)
OKLCHoklch(32.07% 0.153 270.8)
XYZxyz(4.8535, 2.9088, 20.3802)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B227F #7F781B
analogous
#1B547F #1B227F #461B7F
triadic
#1B227F #7F1B22 #227F1B
tetradic
#1B227F #7F1B54 #7F781B #1B7F46
square
#1B227F #7F1B54 #7F781B #1B7F46
split-complementary
#1B227F #7F461B #547F1B
monochromatic
#06071A #10144D #1B227F #2630B1 #3E49D6

Accessibility & contrast

On white

13.28
#1B227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B227F
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B227F#FFFFFF#000000##FFFFFF
##1B227F1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b227f;
/* rgb */ color: rgb(27, 34, 127);
/* oklch */ color: oklch(32.1% 0.153 270.8);
Tailwind
colors: {
  custom: {
    50: '#6a5da5',
    500: '#1b227f',
    950: '#000000',
  },
}
SCSS
$custom: #1b227f;
$custom-light: #6a5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b227f",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 235.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32067,
    "c": 0.15315,
    "h": 270.8
  },
  "luminance": 0.02909
}

Semantic roles & 50–950 ramp

primary
#1B227F
secondary
#B3AB43
accent
#DC40E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B227F

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

Preview Lab → · Contrast checker → · Palette generator →

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