#1B227C#1B227C

#1B227C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.149 H 271.0°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#1B227C
RGBrgb(27, 34, 124)
HSLhsl(236, 64%, 30%)
HSVhsv(236, 78%, 49%)
CMYKcmyk(78.2%, 72.6%, 0%, 51.4%)
CIE-LABlab(19.36, 30.61, -51.51)
CIE-LCHlch(19.36, 59.92, 300.72°)
OKLaboklab(31.74% 0.0027 -0.1491)
OKLCHoklch(31.74% 0.149 271)
XYZxyz(4.6609, 2.8318, 19.3658)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B227C #7C751B
analogous
#1B537C #1B227C #451B7C
triadic
#1B227C #7C1B22 #227C1B
tetradic
#1B227C #7C1B53 #7C751B #1B7C45
square
#1B227C #7C1B53 #7C751B #1B7C45
split-complementary
#1B227C #7C451B #537C1B
monochromatic
#050719 #10144A #1B227C #2630AE #3D48D5

Accessibility & contrast

On white

13.41
#1B227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1B227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B227C
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B227C#FFFFFF#000000##FFFFFF
##1B227C1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b227c;
/* rgb */ color: rgb(27, 34, 124);
/* oklch */ color: oklch(31.7% 0.149 271.0);
Tailwind
colors: {
  custom: {
    50: '#695da3',
    500: '#1b227c',
    950: '#000000',
  },
}
SCSS
$custom: #1b227c;
$custom-light: #695da3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b227c",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 235.67,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31742,
    "c": 0.14912,
    "h": 271
  },
  "luminance": 0.02832
}

Semantic roles & 50–950 ramp

primary
#1B227C
secondary
#B0A843
accent
#DB41E7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B227C

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

Preview Lab → · Contrast checker → · Palette generator →

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