#1F2F88#1F2F88

#1F2F88 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.149 H 269.2°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#1F2F88
RGBrgb(31, 47, 136)
HSLhsl(231, 63%, 33%)
HSVhsv(231, 77%, 53%)
CMYKcmyk(77.2%, 65.4%, 0%, 46.7%)
CIE-LABlab(24.00, 26.92, -51.44)
CIE-LCHlch(24.00, 58.06, 297.63°)
OKLaboklab(35.55% -0.002 -0.1487)
OKLCHoklch(35.55% 0.149 269.2)
XYZxyz(6.0240, 4.1013, 23.7619)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F88 #88781F
analogous
#1F6388 #1F2F88 #431F88
triadic
#1F2F88 #881F2F #2F881F
tetradic
#1F2F88 #881F63 #88781F #1F8843
square
#1F2F88 #881F63 #88781F #1F8843
split-complementary
#1F2F88 #88431F #63881F
monochromatic
#080D24 #141E56 #1F2F88 #2A40BA #4B60D6

Accessibility & contrast

On white

11.54
#1F2F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F2F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F88
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F88#FFFFFF#000000##FFFFFF
##1F2F881.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003486
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2f88;
/* rgb */ color: rgb(31, 47, 136);
/* oklch */ color: oklch(35.5% 0.149 269.2);
Tailwind
colors: {
  custom: {
    50: '#6c67ac',
    500: '#1f2f88',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f88;
$custom-light: #6c67ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f88",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 230.857,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35546,
    "c": 0.14874,
    "h": 269.2
  },
  "luminance": 0.04102
}

Semantic roles & 50–950 ramp

primary
#1F2F88
secondary
#B9A84A
accent
#CD42E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F2F88

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

Preview Lab → · Contrast checker → · Palette generator →

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