#1F2D7B#1F2D7B

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

Color values

HEX#1F2D7B
RGBrgb(31, 45, 123)
HSLhsl(231, 60%, 30%)
HSVhsv(231, 75%, 48%)
CMYKcmyk(74.8%, 63.4%, 0%, 51.8%)
CIE-LABlab(22.29, 23.25, -46.05)
CIE-LCHlch(22.29, 51.59, 296.79°)
OKLaboklab(33.92% -0.0002 -0.133)
OKLCHoklch(33.92% 0.133 269.9)
XYZxyz(5.0774, 3.5976, 19.1619)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D7B #7B6D1F
analogous
#1F5B7B #1F2D7B #3F1F7B
triadic
#1F2D7B #7B1F2D #2D7B1F
tetradic
#1F2D7B #7B1F5B #7B6D1F #1F7B3F
square
#1F2D7B #7B1F5B #7B6D1F #1F7B3F
split-complementary
#1F2D7B #7B3F1F #5B7B1F
monochromatic
#060919 #131B4A #1F2D7B #2B3FAC #445AD0

Accessibility & contrast

On white

12.21
#1F2D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2D7B
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D7B#FFFFFF#000000##FFFFFF
##1F2D7B1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2d7b;
/* rgb */ color: rgb(31, 45, 123);
/* oklch */ color: oklch(33.9% 0.133 269.9);
Tailwind
colors: {
  custom: {
    50: '#6965a2',
    500: '#1f2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d7b;
$custom-light: #6965a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d7b",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 230.87,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3392,
    "c": 0.13296,
    "h": 269.9
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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