#1F2B9C#1F2B9C

#1F2B9C is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.180 H 269.5°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#1F2B9C
RGBrgb(31, 43, 156)
HSLhsl(234, 67%, 37%)
HSVhsv(234, 80%, 61%)
CMYKcmyk(80.1%, 72.4%, 0%, 38.8%)
CIE-LABlab(25.01, 37.00, -62.14)
CIE-LCHlch(25.01, 72.32, 300.77°)
OKLaboklab(36.88% -0.0016 -0.18)
OKLCHoklch(36.88% 0.18 269.5)
XYZxyz(7.4276, 4.4185, 31.9074)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B9C #9C901F
analogous
#1F6A9C #1F2B9C #521F9C
triadic
#1F2B9C #9C1F2B #2B9C1F
tetradic
#1F2B9C #9C1F6A #9C901F #1F9C52
square
#1F2B9C #9C1F6A #9C901F #1F9C52
split-complementary
#1F2B9C #9C521F #6A9C1F
monochromatic
#0B0F36 #151D69 #1F2B9C #2939CF #5865DE

Accessibility & contrast

On white

11.15
#1F2B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#1F2B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B9C
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B9C#FFFFFF#000000##FFFFFF
##1F2B9C1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#00359A
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f2b9c;
/* rgb */ color: rgb(31, 43, 156);
/* oklch */ color: oklch(36.9% 0.180 269.5);
Tailwind
colors: {
  custom: {
    50: '#7265ba',
    500: '#1f2b9c',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b9c;
$custom-light: #7265ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b9c",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 156
  },
  "hsl": {
    "h": 234.24,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36876,
    "c": 0.17999,
    "h": 269.5
  },
  "luminance": 0.04419
}

Semantic roles & 50–950 ramp

primary
#1F2B9C
secondary
#C1B755
accent
#D93EEA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090512
muted
#7B7A81

Preview Lab

Preview with #1F2B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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