#1B229E#1B229E

#1B229E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.192 H 269.2°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#1B229E
RGBrgb(27, 34, 158)
HSLhsl(237, 71%, 36%)
HSVhsv(237, 83%, 62%)
CMYKcmyk(82.9%, 78.5%, 0%, 38%)
CIE-LABlab(23.15, 42.74, -66.44)
CIE-LCHlch(23.15, 79.00, 302.75°)
OKLaboklab(35.57% -0.0026 -0.1925)
OKLCHoklch(35.57% 0.192 269.2)
XYZxyz(7.1935, 3.8448, 32.7041)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B229E #9E971B
analogous
#1B649E #1B229E #561B9E
triadic
#1B229E #9E1B22 #229E1B
tetradic
#1B229E #9E1B64 #9E971B #1B9E56
square
#1B229E #9E1B64 #9E971B #1B9E56
split-complementary
#1B229E #9E561B #649E1B
monochromatic
#090C35 #12176A #1B229E #242DD2 #525AE1

Accessibility & contrast

On white

11.87
#1B229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1B229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B229E
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B229E#FFFFFF#000000##FFFFFF
##1B229E1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00309C
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1b229e;
/* rgb */ color: rgb(27, 34, 158);
/* oklch */ color: oklch(35.6% 0.192 269.2);
Tailwind
colors: {
  custom: {
    50: '#725fbc',
    500: '#1b229e',
    950: '#000000',
  },
}
SCSS
$custom: #1b229e;
$custom-light: #725fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1b229e",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 236.794,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35567,
    "c": 0.19249,
    "h": 269.2
  },
  "luminance": 0.03846
}

Semantic roles & 50–950 ramp

primary
#1B229E
secondary
#C4BE51
accent
#E43AEE
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1B229E

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

Preview Lab → · Contrast checker → · Palette generator →

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