#1B236F#1B236F

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

Color values

HEX#1B236F
RGBrgb(27, 35, 111)
HSLhsl(234, 61%, 27%)
HSVhsv(234, 76%, 44%)
CMYKcmyk(75.7%, 68.5%, 0%, 56.5%)
CIE-LABlab(18.29, 24.98, -44.92)
CIE-LCHlch(18.29, 51.40, 299.08°)
OKLaboklab(30.57% 0.0034 -0.1298)
OKLCHoklch(30.57% 0.13 271.5)
XYZxyz(3.9213, 2.5824, 15.3276)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B236F #6F671B
analogous
#1B4D6F #1B236F #3D1B6F
triadic
#1B236F #6F1B23 #236F1B
tetradic
#1B236F #6F1B4D #6F671B #1B6F3D
square
#1B236F #6F1B4D #6F671B #1B6F3D
split-complementary
#1B236F #6F3D1B #4D6F1B
monochromatic
#060819 #0F133E #1B236F #2733A0 #3645CE

Accessibility & contrast

On white

13.85
#1B236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1B236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B236F
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B236F#FFFFFF#000000##FFFFFF
##1B236F1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b236f;
/* rgb */ color: rgb(27, 35, 111);
/* oklch */ color: oklch(30.6% 0.130 271.5);
Tailwind
colors: {
  custom: {
    50: '#655e99',
    500: '#1b236f',
    950: '#000000',
  },
}
SCSS
$custom: #1b236f;
$custom-light: #655e99;
$custom-dark: #000000;
JSON
{
  "hex": "#1b236f",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 234.286,
    "s": 60.87,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30565,
    "c": 0.12988,
    "h": 271.5
  },
  "luminance": 0.02583
}

Semantic roles & 50–950 ramp

primary
#1B236F
secondary
#A49B42
accent
#D544E4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1B236F

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

Preview Lab → · Contrast checker → · Palette generator →

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