#1B2D74#1B2D74

#1B2D74 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.1% C 0.124 H 268.0°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#1B2D74
RGBrgb(27, 45, 116)
HSLhsl(228, 62%, 28%)
HSVhsv(228, 77%, 45%)
CMYKcmyk(76.7%, 61.2%, 0%, 54.5%)
CIE-LABlab(21.47, 19.93, -42.95)
CIE-LCHlch(21.47, 47.34, 294.90°)
OKLaboklab(33.06% -0.0043 -0.1239)
OKLCHoklch(33.06% 0.124 268)
XYZxyz(4.5417, 3.3703, 16.9308)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2D74 #74621B
analogous
#1B5974 #1B2D74 #351B74
triadic
#1B2D74 #741B2D #2D741B
tetradic
#1B2D74 #741B59 #74621B #1B7435
square
#1B2D74 #741B59 #74621B #1B7435
split-complementary
#1B2D74 #74351B #59741B
monochromatic
#060A19 #0F1A42 #1B2D74 #2740A6 #3957D1

Accessibility & contrast

On white

12.54
#1B2D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1B2D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2D74
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2D74#FFFFFF#000000##FFFFFF
##1B2D741.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#003073
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b2d74;
/* rgb */ color: rgb(27, 45, 116);
/* oklch */ color: oklch(33.1% 0.124 268.0);
Tailwind
colors: {
  custom: {
    50: '#66659d',
    500: '#1b2d74',
    950: '#000000',
  },
}
SCSS
$custom: #1b2d74;
$custom-light: #66659d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2d74",
  "rgb": {
    "r": 27,
    "g": 45,
    "b": 116
  },
  "hsl": {
    "h": 227.865,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33058,
    "c": 0.12401,
    "h": 268
  },
  "luminance": 0.03371
}

Semantic roles & 50–950 ramp

primary
#1B2D74
secondary
#A99442
accent
#C442E5
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #1B2D74

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

Preview Lab → · Contrast checker → · Palette generator →

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