#1B227D#1B227D

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

Color values

HEX#1B227D
RGBrgb(27, 34, 125)
HSLhsl(236, 64%, 30%)
HSVhsv(236, 78%, 49%)
CMYKcmyk(78.4%, 72.8%, 0%, 51%)
CIE-LABlab(19.46, 30.98, -51.98)
CIE-LCHlch(19.46, 60.51, 300.80°)
OKLaboklab(31.85% 0.0025 -0.1504)
OKLCHoklch(31.85% 0.15 271)
XYZxyz(4.7244, 2.8572, 19.7006)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B227D #7D761B
analogous
#1B537D #1B227D #451B7D
triadic
#1B227D #7D1B22 #227D1B
tetradic
#1B227D #7D1B53 #7D761B #1B7D45
square
#1B227D #7D1B53 #7D761B #1B7D45
split-complementary
#1B227D #7D451B #537D1B
monochromatic
#050719 #10144B #1B227D #2630AF #3D48D5

Accessibility & contrast

On white

13.36
#1B227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1B227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B227D
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B227D#FFFFFF#000000##FFFFFF
##1B227D1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b227d;
/* rgb */ color: rgb(27, 34, 125);
/* oklch */ color: oklch(31.9% 0.150 271.0);
Tailwind
colors: {
  custom: {
    50: '#695da4',
    500: '#1b227d',
    950: '#000000',
  },
}
SCSS
$custom: #1b227d;
$custom-light: #695da4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b227d",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 235.714,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3185,
    "c": 0.15047,
    "h": 271
  },
  "luminance": 0.02858
}

Semantic roles & 50–950 ramp

primary
#1B227D
secondary
#B1A943
accent
#DC40E7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B227D

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

Preview Lab → · Contrast checker → · Palette generator →

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