#1B257E#1B257E

#1B257E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.148 H 270.3°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#1B257E
RGBrgb(27, 37, 126)
HSLhsl(234, 65%, 30%)
HSVhsv(234, 79%, 49%)
CMYKcmyk(78.6%, 70.6%, 0%, 50.6%)
CIE-LABlab(20.29, 29.39, -51.25)
CIE-LCHlch(20.29, 59.08, 299.83°)
OKLaboklab(32.48% 0.0007 -0.1483)
OKLCHoklch(32.48% 0.148 270.3)
XYZxyz(4.8782, 3.0620, 20.0685)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B257E #7E741B
analogous
#1B577E #1B257E #421B7E
triadic
#1B257E #7E1B25 #257E1B
tetradic
#1B257E #7E1B57 #7E741B #1B7E42
square
#1B257E #7E1B57 #7E741B #1B7E42
split-complementary
#1B257E #7E421B #577E1B
monochromatic
#050719 #10164C #1B257E #2634B0 #3E4DD6

Accessibility & contrast

On white

13.02
#1B257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B257E
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B257E#FFFFFF#000000##FFFFFF
##1B257E1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b257e;
/* rgb */ color: rgb(27, 37, 126);
/* oklch */ color: oklch(32.5% 0.148 270.3);
Tailwind
colors: {
  custom: {
    50: '#6960a4',
    500: '#1b257e',
    950: '#000000',
  },
}
SCSS
$custom: #1b257e;
$custom-light: #6960a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b257e",
  "rgb": {
    "r": 27,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 233.939,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.32479,
    "c": 0.14832,
    "h": 270.3
  },
  "luminance": 0.03063
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B257E

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

Preview Lab → · Contrast checker → · Palette generator →

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