#1F2B9E#1F2B9E

#1F2B9E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.183 H 269.4°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#1F2B9E
RGBrgb(31, 43, 158)
HSLhsl(234, 67%, 37%)
HSVhsv(234, 80%, 62%)
CMYKcmyk(80.4%, 72.8%, 0%, 38%)
CIE-LABlab(25.22, 37.72, -63.01)
CIE-LCHlch(25.22, 73.44, 300.91°)
OKLaboklab(37.09% -0.0018 -0.1825)
OKLCHoklch(37.09% 0.183 269.4)
XYZxyz(7.5984, 4.4868, 32.8067)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B9E #9E921F
analogous
#1F6A9E #1F2B9E #531F9E
triadic
#1F2B9E #9E1F2B #2B9E1F
tetradic
#1F2B9E #9E1F6A #9E921F #1F9E53
square
#1F2B9E #9E1F6A #9E921F #1F9E53
split-complementary
#1F2B9E #9E531F #6A9E1F
monochromatic
#0B0F38 #151D6B #1F2B9E #2939D1 #5966DE

Accessibility & contrast

On white

11.07
#1F2B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#1F2B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B9E
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B9E#FFFFFF#000000##FFFFFF
##1F2B9E1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f2b9e;
/* rgb */ color: rgb(31, 43, 158);
/* oklch */ color: oklch(37.1% 0.183 269.4);
Tailwind
colors: {
  custom: {
    50: '#7265bc',
    500: '#1f2b9e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b9e;
$custom-light: #7265bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b9e",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 234.331,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3709,
    "c": 0.18254,
    "h": 269.4
  },
  "luminance": 0.04488
}

Semantic roles & 50–950 ramp

primary
#1F2B9E
secondary
#C2B856
accent
#DA3EEA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090512
muted
#7B7A81

Preview Lab

Preview with #1F2B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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