#1A2F7F#1A2F7F

#1A2F7F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.138 H 267.2°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#1A2F7F
RGBrgb(26, 47, 127)
HSLhsl(228, 66%, 30%)
HSVhsv(228, 80%, 50%)
CMYKcmyk(79.5%, 63%, 0%, 50.2%)
CIE-LABlab(22.95, 22.82, -47.53)
CIE-LCHlch(22.95, 52.72, 295.64°)
OKLaboklab(34.45% -0.0066 -0.1374)
OKLCHoklch(34.45% 0.138 267.2)
XYZxyz(5.2719, 3.7844, 20.5272)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F7F #7F6A1A
analogous
#1A617F #1A2F7F #381A7F
triadic
#1A2F7F #7F1A2F #2F7F1A
tetradic
#1A2F7F #7F1A61 #7F6A1A #1A7F38
square
#1A2F7F #7F1A61 #7F6A1A #1A7F38
split-complementary
#1A2F7F #7F381A #617F1A
monochromatic
#050919 #101C4C #1A2F7F #2442B2 #3C5CD7

Accessibility & contrast

On white

11.95
#1A2F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1A2F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2F7F
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F7F#FFFFFF#000000##FFFFFF
##1A2F7F1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1a2f7f;
/* rgb */ color: rgb(26, 47, 127);
/* oklch */ color: oklch(34.4% 0.138 267.2);
Tailwind
colors: {
  custom: {
    50: '#6867a5',
    500: '#1a2f7f',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f7f;
$custom-light: #6867a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f7f",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 227.525,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.34445,
    "c": 0.13754,
    "h": 267.2
  },
  "luminance": 0.03785
}

Semantic roles & 50–950 ramp

primary
#1A2F7F
secondary
#B39B42
accent
#C63FE9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1A2F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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