#1F128E#1F128E

#1F128E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.185 H 273.0°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#1F128E
RGBrgb(31, 18, 142)
HSLhsl(246, 78%, 31%)
HSVhsv(246, 87%, 56%)
CMYKcmyk(78.2%, 87.3%, 0%, 44.3%)
CIE-LABlab(18.70, 45.72, -63.94)
CIE-LCHlch(18.70, 78.61, 305.56°)
OKLaboklab(31.96% 0.0098 -0.1849)
OKLCHoklch(31.96% 0.185 273)
XYZxyz(5.6622, 2.6763, 25.8041)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F128E #818E12
analogous
#12438E #1F128E #5D128E
triadic
#1F128E #8E1F12 #128E1F
tetradic
#1F128E #8E1243 #818E12 #128E5D
square
#1F128E #8E1243 #818E12 #128E5D
split-complementary
#1F128E #8E5D12 #438E12
monochromatic
#070421 #130B58 #1F128E #2B19C4 #4735E5

Accessibility & contrast

On white

13.68
#1F128E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F128E
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F128E#FFFFFF#000000##FFFFFF
##1F128E1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00278C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f128e;
/* rgb */ color: rgb(31, 18, 142);
/* oklch */ color: oklch(32.0% 0.185 273.0);
Tailwind
colors: {
  custom: {
    50: '#7056b0',
    500: '#1f128e',
    950: '#000000',
  },
}
SCSS
$custom: #1f128e;
$custom-light: #7056b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f128e",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 142
  },
  "hsl": {
    "h": 246.29,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31963,
    "c": 0.18515,
    "h": 273
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F128E

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

Preview Lab → · Contrast checker → · Palette generator →

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