#1F2F85#1F2F85

#1F2F85 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.145 H 269.2°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#1F2F85
RGBrgb(31, 47, 133)
HSLhsl(231, 62%, 32%)
HSVhsv(231, 77%, 52%)
CMYKcmyk(76.7%, 64.7%, 0%, 47.8%)
CIE-LABlab(23.73, 25.76, -50.02)
CIE-LCHlch(23.73, 56.26, 297.25°)
OKLaboklab(35.26% -0.0019 -0.1446)
OKLCHoklch(35.26% 0.145 269.2)
XYZxyz(5.8138, 4.0172, 22.6547)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F85 #85751F
analogous
#1F6285 #1F2F85 #421F85
triadic
#1F2F85 #851F2F #2F851F
tetradic
#1F2F85 #851F62 #85751F #1F8542
square
#1F2F85 #851F62 #85751F #1F8542
split-complementary
#1F2F85 #85421F #62851F
monochromatic
#080C22 #131D53 #1F2F85 #2B41B7 #4A5FD5

Accessibility & contrast

On white

11.64
#1F2F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F2F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F85
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F85#FFFFFF#000000##FFFFFF
##1F2F851.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003483
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2f85;
/* rgb */ color: rgb(31, 47, 133);
/* oklch */ color: oklch(35.3% 0.145 269.2);
Tailwind
colors: {
  custom: {
    50: '#6b67a9',
    500: '#1f2f85',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f85;
$custom-light: #6b67a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f85",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 230.588,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35258,
    "c": 0.14457,
    "h": 269.2
  },
  "luminance": 0.04018
}

Semantic roles & 50–950 ramp

primary
#1F2F85
secondary
#B7A649
accent
#CC43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F2F85

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

Preview Lab → · Contrast checker → · Palette generator →

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