#1F126F#1F126F

#1F126F is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.148 H 277.4°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#1F126F
RGBrgb(31, 18, 111)
HSLhsl(248, 72%, 25%)
HSVhsv(248, 84%, 44%)
CMYKcmyk(72.1%, 83.8%, 0%, 56.5%)
CIE-LABlab(14.80, 35.94, -50.66)
CIE-LCHlch(14.80, 62.12, 305.35°)
OKLaboklab(28.15% 0.0191 -0.1464)
OKLCHoklch(28.15% 0.148 277.4)
XYZxyz(3.6497, 1.8713, 15.2047)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F126F #626F12
analogous
#12336F #1F126F #4D126F
triadic
#1F126F #6F1F12 #126F1F
tetradic
#1F126F #6F1233 #626F12 #126F4D
square
#1F126F #6F1233 #626F12 #126F4D
split-complementary
#1F126F #6F4D12 #336F12
monochromatic
#07041A #10093A #1F126F #2E1BA4 #3C23D8

Accessibility & contrast

On white

15.28
#1F126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F126F
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F126F#FFFFFF#000000##FFFFFF
##1F126F1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002972
Deuteranopia (green-blind)
#00216D
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f126f;
/* rgb */ color: rgb(31, 18, 111);
/* oklch */ color: oklch(28.1% 0.148 277.4);
Tailwind
colors: {
  custom: {
    50: '#695399',
    500: '#1f126f',
    950: '#000000',
  },
}
SCSS
$custom: #1f126f;
$custom-light: #695399;
$custom-dark: #000000;
JSON
{
  "hex": "#1f126f",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 248.387,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28149,
    "c": 0.14763,
    "h": 277.4
  },
  "luminance": 0.01872
}

Semantic roles & 50–950 ramp

primary
#1F126F
secondary
#97A637
accent
#EF39D5
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F126F

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

Preview Lab → · Contrast checker → · Palette generator →

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