#1F2F7E#1F2F7E

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

Color values

HEX#1F2F7E
RGBrgb(31, 47, 126)
HSLhsl(230, 61%, 31%)
HSVhsv(230, 75%, 49%)
CMYKcmyk(75.4%, 62.7%, 0%, 50.6%)
CIE-LABlab(23.10, 23.03, -46.64)
CIE-LCHlch(23.10, 52.01, 296.28°)
OKLaboklab(34.6% -0.0018 -0.1346)
OKLCHoklch(34.6% 0.135 269.2)
XYZxyz(5.3462, 3.8301, 20.1922)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F7E #7E6E1F
analogous
#1F5E7E #1F2F7E #3E1F7E
triadic
#1F2F7E #7E1F2F #2F7E1F
tetradic
#1F2F7E #7E1F5E #7E6E1F #1F7E3E
square
#1F2F7E #7E1F5E #7E6E1F #1F7E3E
split-complementary
#1F2F7E #7E3E1F #5E7E1F
monochromatic
#070A1C #131D4D #1F2F7E #2B41AF #465DD1

Accessibility & contrast

On white

11.89
#1F2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F2F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F7E
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F7E#FFFFFF#000000##FFFFFF
##1F2F7E1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2f7e;
/* rgb */ color: rgb(31, 47, 126);
/* oklch */ color: oklch(34.6% 0.135 269.2);
Tailwind
colors: {
  custom: {
    50: '#6a67a4',
    500: '#1f2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f7e;
$custom-light: #6a67a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f7e",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 229.895,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34601,
    "c": 0.13466,
    "h": 269.2
  },
  "luminance": 0.03831
}

Semantic roles & 50–950 ramp

primary
#1F2F7E
secondary
#B19F48
accent
#C944E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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