#1F2BA7#1F2BA7

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

Color values

HEX#1F2BA7
RGBrgb(31, 43, 167)
HSLhsl(235, 69%, 39%)
HSVhsv(235, 81%, 65%)
CMYKcmyk(81.4%, 74.3%, 0%, 34.5%)
CIE-LABlab(26.18, 40.92, -66.89)
CIE-LCHlch(26.18, 78.41, 301.45°)
OKLaboklab(38.06% -0.003 -0.1938)
OKLCHoklch(38.06% 0.194 269.1)
XYZxyz(8.4016, 4.8081, 37.0370)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2BA7 #A79B1F
analogous
#1F6FA7 #1F2BA7 #571FA7
triadic
#1F2BA7 #A71F2B #2BA71F
tetradic
#1F2BA7 #A71F6F #A79B1F #1FA757
square
#1F2BA7 #A71F6F #A79B1F #1FA757
split-complementary
#1F2BA7 #A7571F #6FA71F
monochromatic
#0C1040 #151E73 #1F2BA7 #2B3BD8 #5F6BE1

Accessibility & contrast

On white

10.70
#1F2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1F2BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2BA7
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2BA7#FFFFFF#000000##FFFFFF
##1F2BA71.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0037A5
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f2ba7;
/* rgb */ color: rgb(31, 43, 167);
/* oklch */ color: oklch(38.1% 0.194 269.1);
Tailwind
colors: {
  custom: {
    50: '#7565c2',
    500: '#1f2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #1f2ba7;
$custom-light: #7565c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2ba7",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 234.706,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38063,
    "c": 0.19381,
    "h": 269.1
  },
  "luminance": 0.04809
}

Semantic roles & 50–950 ramp

primary
#1F2BA7
secondary
#C6BC5C
accent
#DC3CEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #1F2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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