#1A255F#1A255F

#1A255F is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.4% C 0.104 H 270.5°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#1A255F
RGBrgb(26, 37, 95)
HSLhsl(230, 57%, 24%)
HSVhsv(230, 73%, 37%)
CMYKcmyk(72.6%, 61.1%, 0%, 62.7%)
CIE-LABlab(17.31, 17.05, -36.03)
CIE-LCHlch(17.31, 39.87, 295.32°)
OKLaboklab(29.38% 0.001 -0.1038)
OKLCHoklch(29.38% 0.104 270.5)
XYZxyz(3.1524, 2.3687, 11.1153)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A255F #5F541A
analogous
#1A475F #1A255F #311A5F
triadic
#1A255F #5F1A25 #255F1A
tetradic
#1A255F #5F1A47 #5F541A #1A5F31
square
#1A255F #5F1A47 #5F541A #1A5F31
split-complementary
#1A255F #5F311A #475F1A
monochromatic
#070918 #0D122F #1A255F #27388F #344ABF

Accessibility & contrast

On white

14.25
#1A255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1A255F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A255F
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A255F#FFFFFF#000000##FFFFFF
##1A255F1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#00285E
Tritanopia (blue-blind)
#00333E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1a255f;
/* rgb */ color: rgb(26, 37, 95);
/* oklch */ color: oklch(29.4% 0.104 270.5);
Tailwind
colors: {
  custom: {
    50: '#605f8d',
    500: '#1a255f',
    950: '#000000',
  },
}
SCSS
$custom: #1a255f;
$custom-light: #605f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1a255f",
  "rgb": {
    "r": 26,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 230.435,
    "s": 57.025,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29375,
    "c": 0.10376,
    "h": 270.5
  },
  "luminance": 0.02369
}

Semantic roles & 50–950 ramp

primary
#1A255F
secondary
#958740
accent
#C848E0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #1A255F

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

Preview Lab → · Contrast checker → · Palette generator →

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