#1F2F8C#1F2F8C

#1F2F8C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.154 H 269.2°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#1F2F8C
RGBrgb(31, 47, 140)
HSLhsl(231, 64%, 34%)
HSVhsv(231, 78%, 55%)
CMYKcmyk(77.9%, 66.4%, 0%, 45.1%)
CIE-LABlab(24.38, 28.46, -53.32)
CIE-LCHlch(24.38, 60.44, 298.09°)
OKLaboklab(35.93% -0.0022 -0.1542)
OKLCHoklch(35.93% 0.154 269.2)
XYZxyz(6.3136, 4.2171, 25.2871)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F8C #8C7C1F
analogous
#1F658C #1F2F8C #451F8C
triadic
#1F2F8C #8C1F2F #2F8C1F
tetradic
#1F2F8C #8C1F65 #8C7C1F #1F8C45
square
#1F2F8C #8C1F65 #8C7C1F #1F8C45
split-complementary
#1F2F8C #8C451F #658C1F
monochromatic
#090D28 #141E5A #1F2F8C #2A40BE #4E62D8

Accessibility & contrast

On white

11.39
#1F2F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1F2F8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F8C
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F8C#FFFFFF#000000##FFFFFF
##1F2F8C1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f2f8c;
/* rgb */ color: rgb(31, 47, 140);
/* oklch */ color: oklch(35.9% 0.154 269.2);
Tailwind
colors: {
  custom: {
    50: '#6d67af',
    500: '#1f2f8c',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f8c;
$custom-light: #6d67af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f8c",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 140
  },
  "hsl": {
    "h": 231.193,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35934,
    "c": 0.15426,
    "h": 269.2
  },
  "luminance": 0.04218
}

Semantic roles & 50–950 ramp

primary
#1F2F8C
secondary
#BBAA4C
accent
#CE41E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F2F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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