#1B226E#1B226E

#1B226E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.130 H 271.8°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#1B226E
RGBrgb(27, 34, 110)
HSLhsl(235, 61%, 27%)
HSVhsv(235, 75%, 43%)
CMYKcmyk(75.5%, 69.1%, 0%, 56.9%)
CIE-LABlab(17.93, 25.28, -44.86)
CIE-LCHlch(17.93, 51.49, 299.40°)
OKLaboklab(30.27% 0.0042 -0.1297)
OKLCHoklch(30.27% 0.13 271.8)
XYZxyz(3.8375, 2.5025, 15.0296)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B226E #6E671B
analogous
#1B4C6E #1B226E #3E1B6E
triadic
#1B226E #6E1B22 #226E1B
tetradic
#1B226E #6E1B4C #6E671B #1B6E3E
square
#1B226E #6E1B4C #6E671B #1B6E3E
split-complementary
#1B226E #6E3E1B #4C6E1B
monochromatic
#060819 #0F133D #1B226E #27319F #3643CE

Accessibility & contrast

On white

13.99
#1B226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1B226E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B226E
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B226E#FFFFFF#000000##FFFFFF
##1B226E1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1b226e;
/* rgb */ color: rgb(27, 34, 110);
/* oklch */ color: oklch(30.3% 0.130 271.8);
Tailwind
colors: {
  custom: {
    50: '#655d98',
    500: '#1b226e',
    950: '#000000',
  },
}
SCSS
$custom: #1b226e;
$custom-light: #655d98;
$custom-dark: #000000;
JSON
{
  "hex": "#1b226e",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 234.94,
    "s": 60.584,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30274,
    "c": 0.12973,
    "h": 271.8
  },
  "luminance": 0.02503
}

Semantic roles & 50–950 ramp

primary
#1B226E
secondary
#A39B42
accent
#D644E4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1B226E

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

Preview Lab → · Contrast checker → · Palette generator →

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