#1F126B#1F126B

#1F126B is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.7% C 0.143 H 278.2°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#1F126B
RGBrgb(31, 18, 107)
HSLhsl(249, 71%, 25%)
HSVhsv(249, 83%, 42%)
CMYKcmyk(71%, 83.2%, 0%, 58%)
CIE-LABlab(14.32, 34.62, -48.84)
CIE-LCHlch(14.32, 59.87, 305.33°)
OKLaboklab(27.67% 0.0203 -0.1411)
OKLCHoklch(27.67% 0.143 278.2)
XYZxyz(3.4344, 1.7852, 14.0707)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F126B #5E6B12
analogous
#12326B #1F126B #4C126B
triadic
#1F126B #6B1F12 #126B1F
tetradic
#1F126B #6B1232 #5E6B12 #126B4C
square
#1F126B #6B1232 #5E6B12 #126B4C
split-complementary
#1F126B #6B4C12 #326B12
monochromatic
#08041A #100937 #1F126B #2E1B9F #3D24D4

Accessibility & contrast

On white

15.48
#1F126B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F126B
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F126B#FFFFFF#000000##FFFFFF
##1F126B1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286D
Deuteranopia (green-blind)
#002169
Tritanopia (blue-blind)
#002D3E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1f126b;
/* rgb */ color: rgb(31, 18, 107);
/* oklch */ color: oklch(27.7% 0.143 278.2);
Tailwind
colors: {
  custom: {
    50: '#685396',
    500: '#1f126b',
    950: '#000000',
  },
}
SCSS
$custom: #1f126b;
$custom-light: #685396;
$custom-dark: #000000;
JSON
{
  "hex": "#1f126b",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 107
  },
  "hsl": {
    "h": 248.764,
    "s": 71.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.27674,
    "c": 0.14256,
    "h": 278.2
  },
  "luminance": 0.01785
}

Semantic roles & 50–950 ramp

primary
#1F126B
secondary
#93A236
accent
#EE3AD4
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F126B

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

Preview Lab → · Contrast checker → · Palette generator →

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