#1F126A#1F126A

#1F126A is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.6% C 0.141 H 278.4°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#1F126A
RGBrgb(31, 18, 106)
HSLhsl(249, 71%, 24%)
HSVhsv(249, 83%, 42%)
CMYKcmyk(70.8%, 83%, 0%, 58.4%)
CIE-LABlab(14.20, 34.29, -48.39)
CIE-LCHlch(14.20, 59.31, 305.33°)
OKLaboklab(27.56% 0.0207 -0.1398)
OKLCHoklch(27.56% 0.141 278.4)
XYZxyz(3.3821, 1.7642, 13.7952)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F126A #5D6A12
analogous
#12316A #1F126A #4B126A
triadic
#1F126A #6A1F12 #126A1F
tetradic
#1F126A #6A1231 #5D6A12 #126A4B
square
#1F126A #6A1231 #5D6A12 #126A4B
split-complementary
#1F126A #6A4B12 #316A12
monochromatic
#08041A #100936 #1F126A #2E1B9E #3E24D3

Accessibility & contrast

On white

15.52
#1F126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#1F126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F126A
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F126A#FFFFFF#000000##FFFFFF
##1F126A1.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276C
Deuteranopia (green-blind)
#002068
Tritanopia (blue-blind)
#002D3E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1f126a;
/* rgb */ color: rgb(31, 18, 106);
/* oklch */ color: oklch(27.6% 0.141 278.4);
Tailwind
colors: {
  custom: {
    50: '#675396',
    500: '#1f126a',
    950: '#000000',
  },
}
SCSS
$custom: #1f126a;
$custom-light: #675396;
$custom-dark: #000000;
JSON
{
  "hex": "#1f126a",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 248.864,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27557,
    "c": 0.14128,
    "h": 278.4
  },
  "luminance": 0.01765
}

Semantic roles & 50–950 ramp

primary
#1F126A
secondary
#92A236
accent
#EE3AD3
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F126A

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

Preview Lab → · Contrast checker → · Palette generator →

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