#1F128F#1F128F

#1F128F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.1% C 0.186 H 272.9°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#1F128F
RGBrgb(31, 18, 143)
HSLhsl(246, 78%, 32%)
HSVhsv(246, 87%, 56%)
CMYKcmyk(78.3%, 87.4%, 0%, 43.9%)
CIE-LABlab(18.83, 46.02, -64.35)
CIE-LCHlch(18.83, 79.11, 305.57°)
OKLaboklab(32.09% 0.0095 -0.1861)
OKLCHoklch(32.09% 0.186 272.9)
XYZxyz(5.7377, 2.7065, 26.2013)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F128F #828F12
analogous
#12448F #1F128F #5E128F
triadic
#1F128F #8F1F12 #128F1F
tetradic
#1F128F #8F1244 #828F12 #128F5E
square
#1F128F #8F1244 #828F12 #128F5E
split-complementary
#1F128F #8F5E12 #448F12
monochromatic
#070422 #130B59 #1F128F #2B19C5 #4836E6

Accessibility & contrast

On white

13.62
#1F128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F128F
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F128F#FFFFFF#000000##FFFFFF
##1F128F1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003392
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f128f;
/* rgb */ color: rgb(31, 18, 143);
/* oklch */ color: oklch(32.1% 0.186 272.9);
Tailwind
colors: {
  custom: {
    50: '#7156b1',
    500: '#1f128f',
    950: '#000000',
  },
}
SCSS
$custom: #1f128f;
$custom-light: #7156b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f128f",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 246.24,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32089,
    "c": 0.18632,
    "h": 272.9
  },
  "luminance": 0.02707
}

Semantic roles & 50–950 ramp

primary
#1F128F
secondary
#B5C33A
accent
#F434E0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1F128F

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

Preview Lab → · Contrast checker → · Palette generator →

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