#1F2E7D#1F2E7D

#1F2E7D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.135 H 269.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#1F2E7D
RGBrgb(31, 46, 125)
HSLhsl(230, 60%, 31%)
HSVhsv(230, 75%, 49%)
CMYKcmyk(75.2%, 63.2%, 0%, 51%)
CIE-LABlab(22.74, 23.34, -46.59)
CIE-LCHlch(22.74, 52.11, 296.61°)
OKLaboklab(34.31% -0.001 -0.1345)
OKLCHoklch(34.31% 0.135 269.6)
XYZxyz(5.2425, 3.7254, 19.8409)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E7D #7D6E1F
analogous
#1F5D7D #1F2E7D #3F1F7D
triadic
#1F2E7D #7D1F2E #2E7D1F
tetradic
#1F2E7D #7D1F5D #7D6E1F #1F7D3F
square
#1F2E7D #7D1F5D #7D6E1F #1F7D3F
split-complementary
#1F2E7D #7D3F1F #5D7D1F
monochromatic
#070A1B #131C4C #1F2E7D #2B40AE #455CD1

Accessibility & contrast

On white

12.03
#1F2E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2E7D
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E7D#FFFFFF#000000##FFFFFF
##1F2E7D1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2e7d;
/* rgb */ color: rgb(31, 46, 125);
/* oklch */ color: oklch(34.3% 0.135 269.6);
Tailwind
colors: {
  custom: {
    50: '#6966a3',
    500: '#1f2e7d',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e7d;
$custom-light: #6966a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e7d",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 230.426,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34307,
    "c": 0.13452,
    "h": 269.6
  },
  "luminance": 0.03726
}

Semantic roles & 50–950 ramp

primary
#1F2E7D
secondary
#B09F48
accent
#CA44E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F2E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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