#1A2277#1A2277

#1A2277 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.143 H 270.9°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#1A2277
RGBrgb(26, 34, 119)
HSLhsl(235, 64%, 28%)
HSVhsv(235, 78%, 47%)
CMYKcmyk(78.2%, 71.4%, 0%, 53.3%)
CIE-LABlab(18.78, 28.62, -49.27)
CIE-LCHlch(18.78, 56.98, 300.15°)
OKLaboklab(31.15% 0.0021 -0.1426)
OKLCHoklch(31.15% 0.143 270.9)
XYZxyz(4.3267, 2.6951, 17.7414)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2277 #776F1A
analogous
#1A5077 #1A2277 #401A77
triadic
#1A2277 #771A22 #22771A
tetradic
#1A2277 #771A50 #776F1A #1A7740
square
#1A2277 #771A50 #776F1A #1A7740
split-complementary
#1A2277 #77401A #50771A
monochromatic
#050719 #0F1445 #1A2277 #2530A9 #3845D3

Accessibility & contrast

On white

13.64
#1A2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1A2277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2277
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2277#FFFFFF#000000##FFFFFF
##1A22771.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002975
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1a2277;
/* rgb */ color: rgb(26, 34, 119);
/* oklch */ color: oklch(31.2% 0.143 270.9);
Tailwind
colors: {
  custom: {
    50: '#675d9f',
    500: '#1a2277',
    950: '#000000',
  },
}
SCSS
$custom: #1a2277;
$custom-light: #675d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2277",
  "rgb": {
    "r": 26,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 234.839,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31152,
    "c": 0.1426,
    "h": 270.9
  },
  "luminance": 0.02696
}

Semantic roles & 50–950 ramp

primary
#1A2277
secondary
#ACA241
accent
#D941E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #1A2277

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

Preview Lab → · Contrast checker → · Palette generator →

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