#1B257F#1B257F

#1B257F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.150 H 270.2°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#1B257F
RGBrgb(27, 37, 127)
HSLhsl(234, 65%, 30%)
HSVhsv(234, 79%, 50%)
CMYKcmyk(78.7%, 70.9%, 0%, 50.2%)
CIE-LABlab(20.39, 29.77, -51.72)
CIE-LCHlch(20.39, 59.67, 299.93°)
OKLaboklab(32.58% 0.0006 -0.1497)
OKLCHoklch(32.58% 0.15 270.2)
XYZxyz(4.9430, 3.0879, 20.4101)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B257F #7F751B
analogous
#1B577F #1B257F #431B7F
triadic
#1B257F #7F1B25 #257F1B
tetradic
#1B257F #7F1B57 #7F751B #1B7F43
square
#1B257F #7F1B57 #7F751B #1B7F43
split-complementary
#1B257F #7F431B #577F1B
monochromatic
#06081A #10164D #1B257F #2634B1 #3E4ED6

Accessibility & contrast

On white

12.98
#1B257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1B257F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B257F
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B257F#FFFFFF#000000##FFFFFF
##1B257F1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b257f;
/* rgb */ color: rgb(27, 37, 127);
/* oklch */ color: oklch(32.6% 0.150 270.2);
Tailwind
colors: {
  custom: {
    50: '#6960a5',
    500: '#1b257f',
    950: '#000000',
  },
}
SCSS
$custom: #1b257f;
$custom-light: #6960a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b257f",
  "rgb": {
    "r": 27,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 234,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32584,
    "c": 0.14968,
    "h": 270.2
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

primary
#1B257F
secondary
#B3A843
accent
#D740E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B257F

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

Preview Lab → · Contrast checker → · Palette generator →

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