#1F2F9C#1F2F9C

#1F2F9C is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.176 H 268.9°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#1F2F9C
RGBrgb(31, 47, 156)
HSLhsl(232, 67%, 37%)
HSVhsv(232, 80%, 61%)
CMYKcmyk(80.1%, 69.9%, 0%, 38.8%)
CIE-LABlab(25.93, 34.48, -60.62)
CIE-LCHlch(25.93, 69.73, 299.63°)
OKLaboklab(37.54% -0.0034 -0.1756)
OKLCHoklch(37.54% 0.176 268.9)
XYZxyz(7.5803, 4.7238, 31.9583)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F9C #9C8C1F
analogous
#1F6E9C #1F2F9C #4E1F9C
triadic
#1F2F9C #9C1F2F #2F9C1F
tetradic
#1F2F9C #9C1F6E #9C8C1F #1F9C4E
square
#1F2F9C #9C1F6E #9C8C1F #1F9C4E
split-complementary
#1F2F9C #9C4E1F #6E9C1F
monochromatic
#0B1036 #152069 #1F2F9C #293ECF #5869DE

Accessibility & contrast

On white

10.80
#1F2F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1F2F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F9C
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F9C#FFFFFF#000000##FFFFFF
##1F2F9C1.0010.801.9510.80
#FFFFFF10.801.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00379A
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f2f9c;
/* rgb */ color: rgb(31, 47, 156);
/* oklch */ color: oklch(37.5% 0.176 268.9);
Tailwind
colors: {
  custom: {
    50: '#7168ba',
    500: '#1f2f9c',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f9c;
$custom-light: #7168ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f9c",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 232.32,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37542,
    "c": 0.17558,
    "h": 268.9
  },
  "luminance": 0.04725
}

Semantic roles & 50–950 ramp

primary
#1F2F9C
secondary
#C1B455
accent
#D43EEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F2F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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