#1F126E#1F126E

#1F126E is a dark, vivid blue. Relative luminance 0.018; OKLCH L 28.0% C 0.146 H 277.6°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#1F126E
RGBrgb(31, 18, 110)
HSLhsl(248, 72%, 25%)
HSVhsv(248, 84%, 43%)
CMYKcmyk(71.8%, 83.6%, 0%, 56.9%)
CIE-LABlab(14.68, 35.61, -50.21)
CIE-LCHlch(14.68, 61.56, 305.35°)
OKLaboklab(28.03% 0.0194 -0.1451)
OKLCHoklch(28.03% 0.146 277.6)
XYZxyz(3.5949, 1.8494, 14.9163)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F126E #616E12
analogous
#12336E #1F126E #4D126E
triadic
#1F126E #6E1F12 #126E1F
tetradic
#1F126E #6E1233 #616E12 #126E4D
square
#1F126E #6E1233 #616E12 #126E4D
split-complementary
#1F126E #6E4D12 #336E12
monochromatic
#07041A #100939 #1F126E #2E1BA3 #3D23D7

Accessibility & contrast

On white

15.33
#1F126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1F126E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F126E
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F126E#FFFFFF#000000##FFFFFF
##1F126E1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002971
Deuteranopia (green-blind)
#00216C
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f126e;
/* rgb */ color: rgb(31, 18, 110);
/* oklch */ color: oklch(28.0% 0.146 277.6);
Tailwind
colors: {
  custom: {
    50: '#685399',
    500: '#1f126e',
    950: '#000000',
  },
}
SCSS
$custom: #1f126e;
$custom-light: #685399;
$custom-dark: #000000;
JSON
{
  "hex": "#1f126e",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 248.478,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.2803,
    "c": 0.14637,
    "h": 277.6
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

primary
#1F126E
secondary
#96A537
accent
#EF39D5
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F126E

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

Preview Lab → · Contrast checker → · Palette generator →

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