#1F2BA6#1F2BA6

#1F2BA6 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.193 H 269.1°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#1F2BA6
RGBrgb(31, 43, 166)
HSLhsl(235, 69%, 39%)
HSVhsv(235, 81%, 65%)
CMYKcmyk(81.3%, 74.1%, 0%, 34.9%)
CIE-LABlab(26.07, 40.56, -66.46)
CIE-LCHlch(26.07, 77.86, 301.40°)
OKLaboklab(37.95% -0.0029 -0.1926)
OKLCHoklch(37.95% 0.193 269.1)
XYZxyz(8.3095, 4.7713, 36.5520)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2BA6 #A69A1F
analogous
#1F6EA6 #1F2BA6 #561FA6
triadic
#1F2BA6 #A61F2B #2BA61F
tetradic
#1F2BA6 #A61F6E #A69A1F #1FA656
square
#1F2BA6 #A61F6E #A69A1F #1FA656
split-complementary
#1F2BA6 #A6561F #6EA61F
monochromatic
#0C103F #151E72 #1F2BA6 #2B3AD7 #5E6AE1

Accessibility & contrast

On white

10.74
#1F2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2BA6
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2BA6#FFFFFF#000000##FFFFFF
##1F2BA61.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f2ba6;
/* rgb */ color: rgb(31, 43, 166);
/* oklch */ color: oklch(38.0% 0.193 269.1);
Tailwind
colors: {
  custom: {
    50: '#7465c2',
    500: '#1f2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #1f2ba6;
$custom-light: #7465c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2ba6",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 234.667,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37954,
    "c": 0.19258,
    "h": 269.1
  },
  "luminance": 0.04772
}

Semantic roles & 50–950 ramp

primary
#1F2BA6
secondary
#C5BC5B
accent
#DC3CEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #1F2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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