#1F2B85#1F2B85

#1F2B85 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.150 H 270.3°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#1F2B85
RGBrgb(31, 43, 133)
HSLhsl(233, 62%, 32%)
HSVhsv(233, 77%, 52%)
CMYKcmyk(76.7%, 67.7%, 0%, 47.8%)
CIE-LABlab(22.70, 28.48, -51.71)
CIE-LCHlch(22.70, 59.03, 298.84°)
OKLaboklab(34.5% 0.0008 -0.1495)
OKLCHoklch(34.5% 0.15 270.3)
XYZxyz(5.6611, 3.7119, 22.6039)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B85 #85791F
analogous
#1F5E85 #1F2B85 #461F85
triadic
#1F2B85 #851F2B #2B851F
tetradic
#1F2B85 #851F5E #85791F #1F8546
square
#1F2B85 #851F5E #85791F #1F8546
split-complementary
#1F2B85 #85461F #5E851F
monochromatic
#080B22 #131B53 #1F2B85 #2B3BB7 #4A5AD5

Accessibility & contrast

On white

12.05
#1F2B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F2B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B85
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B85#FFFFFF#000000##FFFFFF
##1F2B851.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2b85;
/* rgb */ color: rgb(31, 43, 133);
/* oklch */ color: oklch(34.5% 0.150 270.3);
Tailwind
colors: {
  custom: {
    50: '#6c64a9',
    500: '#1f2b85',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b85;
$custom-light: #6c64a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b85",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 133
  },
  "hsl": {
    "h": 232.941,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.345,
    "c": 0.14954,
    "h": 270.3
  },
  "luminance": 0.03713
}

Semantic roles & 50–950 ramp

primary
#1F2B85
secondary
#B7AA49
accent
#D243E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1F2B85

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

Preview Lab → · Contrast checker → · Palette generator →

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