#1F2E7E#1F2E7E

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

Color values

HEX#1F2E7E
RGBrgb(31, 46, 126)
HSLhsl(231, 61%, 31%)
HSVhsv(231, 75%, 49%)
CMYKcmyk(75.4%, 63.5%, 0%, 50.6%)
CIE-LABlab(22.83, 23.73, -47.08)
CIE-LCHlch(22.83, 52.72, 296.75°)
OKLaboklab(34.4% -0.001 -0.1359)
OKLCHoklch(34.4% 0.136 269.6)
XYZxyz(5.3067, 3.7511, 20.1790)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E7E #7E6F1F
analogous
#1F5D7E #1F2E7E #3F1F7E
triadic
#1F2E7E #7E1F2E #2E7E1F
tetradic
#1F2E7E #7E1F5D #7E6F1F #1F7E3F
square
#1F2E7E #7E1F5D #7E6F1F #1F7E3F
split-complementary
#1F2E7E #7E3F1F #5D7E1F
monochromatic
#070A1C #131C4D #1F2E7E #2B40AF #465CD1

Accessibility & contrast

On white

12.00
#1F2E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2E7E
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E7E#FFFFFF#000000##FFFFFF
##1F2E7E1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2e7e;
/* rgb */ color: rgb(31, 46, 126);
/* oklch */ color: oklch(34.4% 0.136 269.6);
Tailwind
colors: {
  custom: {
    50: '#6a66a4',
    500: '#1f2e7e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e7e;
$custom-light: #6a66a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e7e",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 230.526,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.344,
    "c": 0.13595,
    "h": 269.6
  },
  "luminance": 0.03752
}

Semantic roles & 50–950 ramp

primary
#1F2E7E
secondary
#B1A048
accent
#CA44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F2E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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