#1B228A#1B228A

#1B228A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.168 H 270.2°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#1B228A
RGBrgb(27, 34, 138)
HSLhsl(236, 67%, 32%)
HSVhsv(236, 80%, 54%)
CMYKcmyk(80.4%, 75.4%, 0%, 45.9%)
CIE-LABlab(20.87, 35.75, -57.85)
CIE-LCHlch(20.87, 68.00, 301.71°)
OKLaboklab(33.28% 0.0007 -0.1675)
OKLCHoklch(33.28% 0.168 270.2)
XYZxyz(5.6099, 3.2114, 24.3640)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B228A #8A831B
analogous
#1B5A8A #1B228A #4B1B8A
triadic
#1B228A #8A1B22 #228A1B
tetradic
#1B228A #8A1B5A #8A831B #1B8A4B
square
#1B228A #8A1B5A #8A831B #1B8A4B
split-complementary
#1B228A #8A4B1B #5A8A1B
monochromatic
#070924 #111557 #1B228A #252FBD #454EDB

Accessibility & contrast

On white

12.79
#1B228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1B228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B228A
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B228A#FFFFFF#000000##FFFFFF
##1B228A1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b228a;
/* rgb */ color: rgb(27, 34, 138);
/* oklch */ color: oklch(33.3% 0.168 270.2);
Tailwind
colors: {
  custom: {
    50: '#6d5ead',
    500: '#1b228a',
    950: '#000000',
  },
}
SCSS
$custom: #1b228a;
$custom-light: #6d5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#1b228a",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 236.216,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3328,
    "c": 0.16755,
    "h": 270.2
  },
  "luminance": 0.03212
}

Semantic roles & 50–950 ramp

primary
#1B228A
secondary
#BCB445
accent
#DF3EEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B228A

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

Preview Lab → · Contrast checker → · Palette generator →

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