#1F2E7C#1F2E7C

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

Color values

HEX#1F2E7C
RGBrgb(31, 46, 124)
HSLhsl(230, 60%, 30%)
HSVhsv(230, 75%, 49%)
CMYKcmyk(75%, 62.9%, 0%, 51.4%)
CIE-LABlab(22.65, 22.94, -46.10)
CIE-LCHlch(22.65, 51.50, 296.46°)
OKLaboklab(34.21% -0.001 -0.1331)
OKLCHoklch(34.21% 0.133 269.6)
XYZxyz(5.1789, 3.7000, 19.5061)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E7C #7C6D1F
analogous
#1F5C7C #1F2E7C #3F1F7C
triadic
#1F2E7C #7C1F2E #2E7C1F
tetradic
#1F2E7C #7C1F5C #7C6D1F #1F7C3F
square
#1F2E7C #7C1F5C #7C6D1F #1F7C3F
split-complementary
#1F2E7C #7C3F1F #5C7C1F
monochromatic
#070A1A #131C4B #1F2E7C #2B40AD #455BD0

Accessibility & contrast

On white

12.07
#1F2E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F2E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E7C
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E7C#FFFFFF#000000##FFFFFF
##1F2E7C1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2e7c;
/* rgb */ color: rgb(31, 46, 124);
/* oklch */ color: oklch(34.2% 0.133 269.6);
Tailwind
colors: {
  custom: {
    50: '#6966a3',
    500: '#1f2e7c',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e7c;
$custom-light: #6966a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e7c",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 230.323,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34214,
    "c": 0.13309,
    "h": 269.6
  },
  "luminance": 0.03701
}

Semantic roles & 50–950 ramp

primary
#1F2E7C
secondary
#AF9F48
accent
#CA45E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F2E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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