#1F2BA8#1F2BA8

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

Color values

HEX#1F2BA8
RGBrgb(31, 43, 168)
HSLhsl(235, 69%, 39%)
HSVhsv(235, 82%, 66%)
CMYKcmyk(81.5%, 74.4%, 0%, 34.1%)
CIE-LABlab(26.29, 41.27, -67.31)
CIE-LCHlch(26.29, 78.95, 301.51°)
OKLaboklab(38.17% -0.0031 -0.195)
OKLCHoklch(38.17% 0.195 269.1)
XYZxyz(8.4944, 4.8452, 37.5257)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2BA8 #A89C1F
analogous
#1F6FA8 #1F2BA8 #581FA8
triadic
#1F2BA8 #A81F2B #2BA81F
tetradic
#1F2BA8 #A81F6F #A89C1F #1FA858
square
#1F2BA8 #A81F6F #A89C1F #1FA858
split-complementary
#1F2BA8 #A8581F #6FA81F
monochromatic
#0C1141 #151E74 #1F2BA8 #2C3BD8 #606BE2

Accessibility & contrast

On white

10.66
#1F2BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#1F2BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2BA8
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2BA8#FFFFFF#000000##FFFFFF
##1F2BA81.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AC
Deuteranopia (green-blind)
#0037A6
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f2ba8;
/* rgb */ color: rgb(31, 43, 168);
/* oklch */ color: oklch(38.2% 0.195 269.1);
Tailwind
colors: {
  custom: {
    50: '#7565c3',
    500: '#1f2ba8',
    950: '#000000',
  },
}
SCSS
$custom: #1f2ba8;
$custom-light: #7565c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2ba8",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 234.745,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38173,
    "c": 0.19506,
    "h": 269.1
  },
  "luminance": 0.04846
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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