#1F126C#1F126C

#1F126C is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.144 H 278.0°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#1F126C
RGBrgb(31, 18, 108)
HSLhsl(249, 71%, 25%)
HSVhsv(249, 83%, 42%)
CMYKcmyk(71.3%, 83.3%, 0%, 57.6%)
CIE-LABlab(14.44, 34.96, -49.30)
CIE-LCHlch(14.44, 60.44, 305.34°)
OKLaboklab(27.79% 0.02 -0.1424)
OKLCHoklch(27.79% 0.144 278)
XYZxyz(3.4873, 1.8063, 14.3493)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F126C #5F6C12
analogous
#12326C #1F126C #4C126C
triadic
#1F126C #6C1F12 #126C1F
tetradic
#1F126C #6C1232 #5F6C12 #126C4C
square
#1F126C #6C1232 #5F6C12 #126C4C
split-complementary
#1F126C #6C4C12 #326C12
monochromatic
#08041A #100938 #1F126C #2E1BA0 #3D23D5

Accessibility & contrast

On white

15.43
#1F126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#1F126C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F126C
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F126C#FFFFFF#000000##FFFFFF
##1F126C1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286E
Deuteranopia (green-blind)
#00216A
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1f126c;
/* rgb */ color: rgb(31, 18, 108);
/* oklch */ color: oklch(27.8% 0.144 278.0);
Tailwind
colors: {
  custom: {
    50: '#685397',
    500: '#1f126c',
    950: '#000000',
  },
}
SCSS
$custom: #1f126c;
$custom-light: #685397;
$custom-dark: #000000;
JSON
{
  "hex": "#1f126c",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 248.667,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.27793,
    "c": 0.14383,
    "h": 278
  },
  "luminance": 0.01807
}

Semantic roles & 50–950 ramp

primary
#1F126C
secondary
#94A336
accent
#EE3AD4
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F126C

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

Preview Lab → · Contrast checker → · Palette generator →

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