#1A2F70#1A2F70

#1A2F70 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.1% C 0.116 H 266.5°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#1A2F70
RGBrgb(26, 47, 112)
HSLhsl(225, 62%, 27%)
HSVhsv(225, 77%, 44%)
CMYKcmyk(76.8%, 58%, 0%, 56.1%)
CIE-LABlab(21.66, 16.74, -40.07)
CIE-LCHlch(21.66, 43.43, 292.67°)
OKLaboklab(33.08% -0.0071 -0.1155)
OKLCHoklch(33.08% 0.116 266.5)
XYZxyz(4.3661, 3.4220, 15.7565)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F70 #705B1A
analogous
#1A5A70 #1A2F70 #301A70
triadic
#1A2F70 #701A2F #2F701A
tetradic
#1A2F70 #701A5A #705B1A #1A7030
square
#1A2F70 #701A5A #705B1A #1A7030
split-complementary
#1A2F70 #70301A #5A701A
monochromatic
#060A19 #0E1A3E #1A2F70 #2644A2 #345AD0

Accessibility & contrast

On white

12.47
#1A2F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1A2F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2F70
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F70#FFFFFF#000000##FFFFFF
##1A2F701.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003872
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1a2f70;
/* rgb */ color: rgb(26, 47, 112);
/* oklch */ color: oklch(33.1% 0.116 266.5);
Tailwind
colors: {
  custom: {
    50: '#64679a',
    500: '#1a2f70',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f70;
$custom-light: #64679a;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f70",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 112
  },
  "hsl": {
    "h": 225.349,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33082,
    "c": 0.11569,
    "h": 266.5
  },
  "luminance": 0.03422
}

Semantic roles & 50–950 ramp

primary
#1A2F70
secondary
#A58D41
accent
#BE42E5
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1A2F70

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

Preview Lab → · Contrast checker → · Palette generator →

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