#1B228F#1B228F

#1B228F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.174 H 270.0°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#1B228F
RGBrgb(27, 34, 143)
HSLhsl(236, 68%, 33%)
HSVhsv(236, 81%, 56%)
CMYKcmyk(81.1%, 76.2%, 0%, 43.9%)
CIE-LABlab(21.43, 37.53, -60.04)
CIE-LCHlch(21.43, 70.81, 302.01°)
OKLaboklab(33.84% -0.0001 -0.1739)
OKLCHoklch(33.84% 0.174 270)
XYZxyz(5.9803, 3.3596, 26.3146)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B228F #8F881B
analogous
#1B5C8F #1B228F #4E1B8F
triadic
#1B228F #8F1B22 #228F1B
tetradic
#1B228F #8F1B5C #8F881B #1B8F4E
square
#1B228F #8F1B5C #8F881B #1B8F4E
split-complementary
#1B228F #8F4E1B #5C8F1B
monochromatic
#080A28 #11165C #1B228F #252EC2 #4851DC

Accessibility & contrast

On white

12.56
#1B228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1B228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B228F
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B228F#FFFFFF#000000##FFFFFF
##1B228F1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b228f;
/* rgb */ color: rgb(27, 34, 143);
/* oklch */ color: oklch(33.8% 0.174 270.0);
Tailwind
colors: {
  custom: {
    50: '#6e5eb1',
    500: '#1b228f',
    950: '#000000',
  },
}
SCSS
$custom: #1b228f;
$custom-light: #6e5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b228f",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 236.379,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33843,
    "c": 0.17392,
    "h": 270
  },
  "luminance": 0.0336
}

Semantic roles & 50–950 ramp

primary
#1B228F
secondary
#BEB748
accent
#E13DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B228F

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

Preview Lab → · Contrast checker → · Palette generator →

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