#1F2BA5#1F2BA5

#1F2BA5 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.191 H 269.2°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#1F2BA5
RGBrgb(31, 43, 165)
HSLhsl(235, 68%, 38%)
HSVhsv(235, 81%, 65%)
CMYKcmyk(81.2%, 73.9%, 0%, 35.3%)
CIE-LABlab(25.97, 40.21, -66.03)
CIE-LCHlch(25.97, 77.31, 301.34°)
OKLaboklab(37.85% -0.0027 -0.1913)
OKLCHoklch(37.85% 0.191 269.2)
XYZxyz(8.2182, 4.7347, 36.0708)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2BA5 #A5991F
analogous
#1F6EA5 #1F2BA5 #561FA5
triadic
#1F2BA5 #A51F2B #2BA51F
tetradic
#1F2BA5 #A51F6E #A5991F #1FA556
square
#1F2BA5 #A51F6E #A5991F #1FA556
split-complementary
#1F2BA5 #A5561F #6EA51F
monochromatic
#0C103E #151E71 #1F2BA5 #2A3AD7 #5E69E1

Accessibility & contrast

On white

10.78
#1F2BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2BA5
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2BA5#FFFFFF#000000##FFFFFF
##1F2BA51.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0037A3
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f2ba5;
/* rgb */ color: rgb(31, 43, 165);
/* oklch */ color: oklch(37.8% 0.191 269.2);
Tailwind
colors: {
  custom: {
    50: '#7465c1',
    500: '#1f2ba5',
    950: '#000000',
  },
}
SCSS
$custom: #1f2ba5;
$custom-light: #7465c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2ba5",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 234.627,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37845,
    "c": 0.19133,
    "h": 269.2
  },
  "luminance": 0.04736
}

Semantic roles & 50–950 ramp

primary
#1F2BA5
secondary
#C5BC5B
accent
#DC3DEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #1F2BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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