#1F2E7F#1F2E7F

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

Color values

HEX#1F2E7F
RGBrgb(31, 46, 127)
HSLhsl(231, 61%, 31%)
HSVhsv(231, 76%, 50%)
CMYKcmyk(75.6%, 63.8%, 0%, 50.2%)
CIE-LABlab(22.92, 24.12, -47.56)
CIE-LCHlch(22.92, 53.33, 296.89°)
OKLaboklab(34.49% -0.001 -0.1374)
OKLCHoklch(34.49% 0.137 269.6)
XYZxyz(5.3715, 3.7770, 20.5205)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E7F #7F701F
analogous
#1F5E7F #1F2E7F #401F7F
triadic
#1F2E7F #7F1F2E #2E7F1F
tetradic
#1F2E7F #7F1F5E #7F701F #1F7F40
square
#1F2E7F #7F1F5E #7F701F #1F7F40
split-complementary
#1F2E7F #7F401F #5E7F1F
monochromatic
#070A1D #131C4E #1F2E7F #2B40B0 #465CD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F2E7F#FFFFFF#000000##FFFFFF
##1F2E7F1.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)
#003B82
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2e7f;
/* rgb */ color: rgb(31, 46, 127);
/* oklch */ color: oklch(34.5% 0.137 269.6);
Tailwind
colors: {
  custom: {
    50: '#6a66a5',
    500: '#1f2e7f',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e7f;
$custom-light: #6a66a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e7f",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 230.625,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34494,
    "c": 0.13738,
    "h": 269.6
  },
  "luminance": 0.03778
}

Semantic roles & 50–950 ramp

primary
#1F2E7F
secondary
#B2A148
accent
#CB44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F2E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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