#1F2F7D#1F2F7D

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

Color values

HEX#1F2F7D
RGBrgb(31, 47, 125)
HSLhsl(230, 60%, 31%)
HSVhsv(230, 75%, 49%)
CMYKcmyk(75.2%, 62.4%, 0%, 51%)
CIE-LABlab(23.01, 22.64, -46.15)
CIE-LCHlch(23.01, 51.40, 296.13°)
OKLaboklab(34.51% -0.0018 -0.1332)
OKLCHoklch(34.51% 0.133 269.2)
XYZxyz(5.2820, 3.8045, 19.8540)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F7D #7D6D1F
analogous
#1F5E7D #1F2F7D #3E1F7D
triadic
#1F2F7D #7D1F2F #2F7D1F
tetradic
#1F2F7D #7D1F5E #7D6D1F #1F7D3E
square
#1F2F7D #7D1F5E #7D6D1F #1F7D3E
split-complementary
#1F2F7D #7D3E1F #5E7D1F
monochromatic
#070A1B #131D4C #1F2F7D #2B41AE #455DD1

Accessibility & contrast

On white

11.93
#1F2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2F7D
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F7D#FFFFFF#000000##FFFFFF
##1F2F7D1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2f7d;
/* rgb */ color: rgb(31, 47, 125);
/* oklch */ color: oklch(34.5% 0.133 269.2);
Tailwind
colors: {
  custom: {
    50: '#6967a3',
    500: '#1f2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f7d;
$custom-light: #6967a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f7d",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 229.787,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34508,
    "c": 0.13322,
    "h": 269.2
  },
  "luminance": 0.03805
}

Semantic roles & 50–950 ramp

primary
#1F2F7D
secondary
#B09E48
accent
#C844E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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