#1A257F#1A257F

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

Color values

HEX#1A257F
RGBrgb(26, 37, 127)
HSLhsl(233, 66%, 30%)
HSVhsv(233, 80%, 50%)
CMYKcmyk(79.5%, 70.9%, 0%, 50.2%)
CIE-LABlab(20.34, 29.67, -51.80)
CIE-LCHlch(20.34, 59.70, 299.80°)
OKLaboklab(32.53% -0.0004 -0.15)
OKLCHoklch(32.53% 0.15 269.8)
XYZxyz(4.9170, 3.0745, 20.4089)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A257F #7F741A
analogous
#1A587F #1A257F #411A7F
triadic
#1A257F #7F1A25 #257F1A
tetradic
#1A257F #7F1A58 #7F741A #1A7F41
square
#1A257F #7F1A58 #7F741A #1A7F41
split-complementary
#1A257F #7F411A #587F1A
monochromatic
#050719 #10164C #1A257F #2434B2 #3C4DD7

Accessibility & contrast

On white

13.00
#1A257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A257F
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A257F#FFFFFF#000000##FFFFFF
##1A257F1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.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: #1a257f;
/* rgb */ color: rgb(26, 37, 127);
/* oklch */ color: oklch(32.5% 0.150 269.8);
Tailwind
colors: {
  custom: {
    50: '#6960a5',
    500: '#1a257f',
    950: '#000000',
  },
}
SCSS
$custom: #1a257f;
$custom-light: #6960a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a257f",
  "rgb": {
    "r": 26,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 233.465,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.32532,
    "c": 0.14996,
    "h": 269.8
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#1A257F
secondary
#B3A742
accent
#D63FE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1A257F

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

Preview Lab → · Contrast checker → · Palette generator →

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