#1F2D7C#1F2D7C

#1F2D7C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.134 H 269.9°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#1F2D7C
RGBrgb(31, 45, 124)
HSLhsl(231, 60%, 30%)
HSVhsv(231, 75%, 49%)
CMYKcmyk(75%, 63.7%, 0%, 51.4%)
CIE-LABlab(22.38, 23.64, -46.54)
CIE-LCHlch(22.38, 52.20, 296.93°)
OKLaboklab(34.01% -0.0002 -0.1344)
OKLCHoklch(34.01% 0.134 269.9)
XYZxyz(5.1403, 3.6228, 19.4932)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D7C #7C6E1F
analogous
#1F5B7C #1F2D7C #401F7C
triadic
#1F2D7C #7C1F2D #2D7C1F
tetradic
#1F2D7C #7C1F5B #7C6E1F #1F7C40
square
#1F2D7C #7C1F5B #7C6E1F #1F7C40
split-complementary
#1F2D7C #7C401F #5B7C1F
monochromatic
#07091A #131B4B #1F2D7C #2B3FAD #455AD0

Accessibility & contrast

On white

12.18
#1F2D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1F2D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D7C
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D7C#FFFFFF#000000##FFFFFF
##1F2D7C1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2d7c;
/* rgb */ color: rgb(31, 45, 124);
/* oklch */ color: oklch(34.0% 0.134 269.9);
Tailwind
colors: {
  custom: {
    50: '#6965a3',
    500: '#1f2d7c',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d7c;
$custom-light: #6965a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d7c",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 230.968,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34013,
    "c": 0.1344,
    "h": 269.9
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#1F2D7C
secondary
#AFA048
accent
#CB45E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1F2D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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