#1F2F7B#1F2F7B

#1F2F7B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.3% C 0.130 H 269.2°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#1F2F7B
RGBrgb(31, 47, 123)
HSLhsl(230, 60%, 30%)
HSVhsv(230, 75%, 48%)
CMYKcmyk(74.8%, 61.8%, 0%, 51.8%)
CIE-LABlab(22.84, 21.85, -45.16)
CIE-LCHlch(22.84, 50.17, 295.82°)
OKLaboklab(34.33% -0.0018 -0.1303)
OKLCHoklch(34.33% 0.13 269.2)
XYZxyz(5.1555, 3.7539, 19.1879)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F7B #7B6B1F
analogous
#1F5D7B #1F2F7B #3D1F7B
triadic
#1F2F7B #7B1F2F #2F7B1F
tetradic
#1F2F7B #7B1F5D #7B6B1F #1F7B3D
square
#1F2F7B #7B1F5D #7B6B1F #1F7B3D
split-complementary
#1F2F7B #7B3D1F #5D7B1F
monochromatic
#060A19 #131C4A #1F2F7B #2B42AC #445DD0

Accessibility & contrast

On white

11.99
#1F2F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F2F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F7B
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F7B#FFFFFF#000000##FFFFFF
##1F2F7B1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2f7b;
/* rgb */ color: rgb(31, 47, 123);
/* oklch */ color: oklch(34.3% 0.130 269.2);
Tailwind
colors: {
  custom: {
    50: '#6967a2',
    500: '#1f2f7b',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f7b;
$custom-light: #6967a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f7b",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 229.565,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34325,
    "c": 0.13033,
    "h": 269.2
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

primary
#1F2F7B
secondary
#AE9C48
accent
#C745E3
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F2F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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