#1F2F7C#1F2F7C

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

Color values

HEX#1F2F7C
RGBrgb(31, 47, 124)
HSLhsl(230, 60%, 30%)
HSVhsv(230, 75%, 49%)
CMYKcmyk(75%, 62.1%, 0%, 51.4%)
CIE-LABlab(22.93, 22.25, -45.66)
CIE-LCHlch(22.93, 50.79, 295.98°)
OKLaboklab(34.42% -0.0018 -0.1318)
OKLCHoklch(34.42% 0.132 269.2)
XYZxyz(5.2184, 3.7790, 19.5193)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F7C #7C6C1F
analogous
#1F5E7C #1F2F7C #3D1F7C
triadic
#1F2F7C #7C1F2F #2F7C1F
tetradic
#1F2F7C #7C1F5E #7C6C1F #1F7C3D
square
#1F2F7C #7C1F5E #7C6C1F #1F7C3D
split-complementary
#1F2F7C #7C3D1F #5E7C1F
monochromatic
#070A1A #131C4B #1F2F7C #2B42AD #455DD0

Accessibility & contrast

On white

11.96
#1F2F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F2F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F7C
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F7C#FFFFFF#000000##FFFFFF
##1F2F7C1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2f7c;
/* rgb */ color: rgb(31, 47, 124);
/* oklch */ color: oklch(34.4% 0.132 269.2);
Tailwind
colors: {
  custom: {
    50: '#6967a3',
    500: '#1f2f7c',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f7c;
$custom-light: #6967a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f7c",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 229.677,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34416,
    "c": 0.13178,
    "h": 269.2
  },
  "luminance": 0.0378
}

Semantic roles & 50–950 ramp

primary
#1F2F7C
secondary
#AF9D48
accent
#C845E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F2F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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