#1B226F#1B226F

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

Color values

HEX#1B226F
RGBrgb(27, 34, 111)
HSLhsl(235, 61%, 27%)
HSVhsv(235, 76%, 44%)
CMYKcmyk(75.7%, 69.4%, 0%, 56.5%)
CIE-LABlab(18.03, 25.67, -45.35)
CIE-LCHlch(18.03, 52.11, 299.51°)
OKLaboklab(30.38% 0.0041 -0.1311)
OKLCHoklch(30.38% 0.131 271.8)
XYZxyz(3.8923, 2.5244, 15.3180)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B226F #6F681B
analogous
#1B4C6F #1B226F #3E1B6F
triadic
#1B226F #6F1B22 #226F1B
tetradic
#1B226F #6F1B4C #6F681B #1B6F3E
square
#1B226F #6F1B4C #6F681B #1B6F3E
split-complementary
#1B226F #6F3E1B #4C6F1B
monochromatic
#060819 #0F133E #1B226F #2731A0 #3643CE

Accessibility & contrast

On white

13.95
#1B226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1B226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B226F
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B226F#FFFFFF#000000##FFFFFF
##1B226F1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1b226f;
/* rgb */ color: rgb(27, 34, 111);
/* oklch */ color: oklch(30.4% 0.131 271.8);
Tailwind
colors: {
  custom: {
    50: '#655d99',
    500: '#1b226f',
    950: '#000000',
  },
}
SCSS
$custom: #1b226f;
$custom-light: #655d99;
$custom-dark: #000000;
JSON
{
  "hex": "#1b226f",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 235,
    "s": 60.87,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30376,
    "c": 0.13115,
    "h": 271.8
  },
  "luminance": 0.02525
}

Semantic roles & 50–950 ramp

primary
#1B226F
secondary
#A49C42
accent
#D744E4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1B226F

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

Preview Lab → · Contrast checker → · Palette generator →

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