#1B2875#1B2875

#1B2875 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.132 H 269.8°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#1B2875
RGBrgb(27, 40, 117)
HSLhsl(231, 63%, 28%)
HSVhsv(231, 77%, 46%)
CMYKcmyk(76.9%, 65.8%, 0%, 54.1%)
CIE-LABlab(20.18, 23.86, -45.69)
CIE-LCHlch(20.18, 51.54, 297.57°)
OKLaboklab(32.13% -0.0005 -0.132)
OKLCHoklch(32.13% 0.132 269.8)
XYZxyz(4.4206, 3.0345, 17.1789)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2875 #75681B
analogous
#1B5575 #1B2875 #3B1B75
triadic
#1B2875 #751B28 #28751B
tetradic
#1B2875 #751B55 #75681B #1B753B
square
#1B2875 #751B55 #75681B #1B753B
split-complementary
#1B2875 #753B1B #55751B
monochromatic
#060919 #101743 #1B2875 #2639A7 #394FD1

Accessibility & contrast

On white

13.07
#1B2875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1B2875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2875
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2875#FFFFFF#000000##FFFFFF
##1B28751.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b2875;
/* rgb */ color: rgb(27, 40, 117);
/* oklch */ color: oklch(32.1% 0.132 269.8);
Tailwind
colors: {
  custom: {
    50: '#66619e',
    500: '#1b2875',
    950: '#000000',
  },
}
SCSS
$custom: #1b2875;
$custom-light: #66619e;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2875",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 117
  },
  "hsl": {
    "h": 231.333,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32131,
    "c": 0.13204,
    "h": 269.8
  },
  "luminance": 0.03035
}

Semantic roles & 50–950 ramp

primary
#1B2875
secondary
#A99B42
accent
#CE42E6
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1B2875

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

Preview Lab → · Contrast checker → · Palette generator →

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