#1B257A#1B257A

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

Color values

HEX#1B257A
RGBrgb(27, 37, 122)
HSLhsl(234, 64%, 29%)
HSVhsv(234, 78%, 48%)
CMYKcmyk(77.9%, 69.7%, 0%, 52.2%)
CIE-LABlab(19.89, 27.86, -49.37)
CIE-LCHlch(19.89, 56.69, 299.44°)
OKLaboklab(32.06% 0.0011 -0.1428)
OKLCHoklch(32.06% 0.143 270.4)
XYZxyz(4.6252, 2.9608, 18.7363)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B257A #7A701B
analogous
#1B557A #1B257A #411B7A
triadic
#1B257A #7A1B25 #257A1B
tetradic
#1B257A #7A1B55 #7A701B #1B7A41
square
#1B257A #7A1B55 #7A701B #1B7A41
split-complementary
#1B257A #7A411B #557A1B
monochromatic
#060819 #101648 #1B257A #2634AC #3C4CD4

Accessibility & contrast

On white

13.19
#1B257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1B257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B257A
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B257A#FFFFFF#000000##FFFFFF
##1B257A1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b257a;
/* rgb */ color: rgb(27, 37, 122);
/* oklch */ color: oklch(32.1% 0.143 270.4);
Tailwind
colors: {
  custom: {
    50: '#685fa1',
    500: '#1b257a',
    950: '#000000',
  },
}
SCSS
$custom: #1b257a;
$custom-light: #685fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b257a",
  "rgb": {
    "r": 27,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 233.684,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32063,
    "c": 0.14283,
    "h": 270.4
  },
  "luminance": 0.02961
}

Semantic roles & 50–950 ramp

primary
#1B257A
secondary
#AEA343
accent
#D541E7
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B257A

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

Preview Lab → · Contrast checker → · Palette generator →

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