#1B236E#1B236E

#1B236E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.5% C 0.128 H 271.5°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#1B236E
RGBrgb(27, 35, 110)
HSLhsl(234, 61%, 27%)
HSVhsv(234, 75%, 43%)
CMYKcmyk(75.5%, 68.2%, 0%, 56.9%)
CIE-LABlab(18.19, 24.59, -44.44)
CIE-LCHlch(18.19, 50.79, 298.96°)
OKLaboklab(30.46% 0.0035 -0.1284)
OKLCHoklch(30.46% 0.128 271.5)
XYZxyz(3.8665, 2.5605, 15.0393)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B236E #6E661B
analogous
#1B4D6E #1B236E #3D1B6E
triadic
#1B236E #6E1B23 #236E1B
tetradic
#1B236E #6E1B4D #6E661B #1B6E3D
square
#1B236E #6E1B4D #6E661B #1B6E3D
split-complementary
#1B236E #6E3D1B #4D6E1B
monochromatic
#060819 #0F133D #1B236E #27339F #3644CE

Accessibility & contrast

On white

13.89
#1B236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1B236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B236E
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B236E#FFFFFF#000000##FFFFFF
##1B236E1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1b236e;
/* rgb */ color: rgb(27, 35, 110);
/* oklch */ color: oklch(30.5% 0.128 271.5);
Tailwind
colors: {
  custom: {
    50: '#655e98',
    500: '#1b236e',
    950: '#000000',
  },
}
SCSS
$custom: #1b236e;
$custom-light: #655e98;
$custom-dark: #000000;
JSON
{
  "hex": "#1b236e",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 234.217,
    "s": 60.584,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30464,
    "c": 0.12846,
    "h": 271.5
  },
  "luminance": 0.02561
}

Semantic roles & 50–950 ramp

primary
#1B236E
secondary
#A39A42
accent
#D444E4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1B236E

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

Preview Lab → · Contrast checker → · Palette generator →

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