#1F2BA0#1F2BA0

#1F2BA0 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.185 H 269.4°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#1F2BA0
RGBrgb(31, 43, 160)
HSLhsl(234, 68%, 37%)
HSVhsv(234, 81%, 63%)
CMYKcmyk(80.6%, 73.1%, 0%, 37.3%)
CIE-LABlab(25.43, 38.44, -63.88)
CIE-LCHlch(25.43, 74.55, 301.04°)
OKLaboklab(37.3% -0.0021 -0.1851)
OKLCHoklch(37.3% 0.185 269.4)
XYZxyz(7.7719, 4.5562, 33.7207)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2BA0 #A0941F
analogous
#1F6BA0 #1F2BA0 #541FA0
triadic
#1F2BA0 #A01F2B #2BA01F
tetradic
#1F2BA0 #A01F6B #A0941F #1FA054
square
#1F2BA0 #A01F6B #A0941F #1FA054
split-complementary
#1F2BA0 #A0541F #6BA01F
monochromatic
#0B0F39 #151D6D #1F2BA0 #2939D3 #5A67DF

Accessibility & contrast

On white

10.99
#1F2BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1F2BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2BA0
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2BA0#FFFFFF#000000##FFFFFF
##1F2BA01.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A3
Deuteranopia (green-blind)
#00369E
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f2ba0;
/* rgb */ color: rgb(31, 43, 160);
/* oklch */ color: oklch(37.3% 0.185 269.4);
Tailwind
colors: {
  custom: {
    50: '#7365bd',
    500: '#1f2ba0',
    950: '#000000',
  },
}
SCSS
$custom: #1f2ba0;
$custom-light: #7365bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2ba0",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 160
  },
  "hsl": {
    "h": 234.419,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37304,
    "c": 0.18507,
    "h": 269.4
  },
  "luminance": 0.04557
}

Semantic roles & 50–950 ramp

primary
#1F2BA0
secondary
#C3B958
accent
#DA3DEA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #1F2BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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