#1B225F#1B225F

#1B225F is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.8% C 0.108 H 272.7°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#1B225F
RGBrgb(27, 34, 95)
HSLhsl(234, 56%, 24%)
HSVhsv(234, 72%, 37%)
CMYKcmyk(71.6%, 64.2%, 0%, 62.7%)
CIE-LABlab(16.52, 19.39, -37.33)
CIE-LCHlch(16.52, 42.06, 297.46°)
OKLaboklab(28.8% 0.005 -0.1076)
OKLCHoklch(28.8% 0.108 272.7)
XYZxyz(3.0889, 2.2030, 11.0867)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B225F #5F581B
analogous
#1B445F #1B225F #361B5F
triadic
#1B225F #5F1B22 #225F1B
tetradic
#1B225F #5F1B44 #5F581B #1B5F36
square
#1B225F #5F1B44 #5F581B #1B5F36
split-complementary
#1B225F #5F361B #445F1B
monochromatic
#070918 #0D112F #1B225F #29338F #3644BE

Accessibility & contrast

On white

14.58
#1B225F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1B225F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B225F
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B225F#FFFFFF#000000##FFFFFF
##1B225F1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#00265E
Tritanopia (blue-blind)
#00313C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b225f;
/* rgb */ color: rgb(27, 34, 95);
/* oklch */ color: oklch(28.8% 0.108 272.7);
Tailwind
colors: {
  custom: {
    50: '#615d8d',
    500: '#1b225f',
    950: '#000000',
  },
}
SCSS
$custom: #1b225f;
$custom-light: #615d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b225f",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 95
  },
  "hsl": {
    "h": 233.824,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.288,
    "c": 0.10768,
    "h": 272.7
  },
  "luminance": 0.02203
}

Semantic roles & 50–950 ramp

primary
#1B225F
secondary
#958C41
accent
#D049DF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #1B225F

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

Preview Lab → · Contrast checker → · Palette generator →

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