#1F2D8D#1F2D8D

#1F2D8D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.158 H 269.6°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#1F2D8D
RGBrgb(31, 45, 141)
HSLhsl(232, 64%, 34%)
HSVhsv(232, 78%, 55%)
CMYKcmyk(78%, 68.1%, 0%, 44.7%)
CIE-LABlab(23.97, 30.17, -54.61)
CIE-LCHlch(23.97, 62.39, 298.92°)
OKLaboklab(35.67% -0.0011 -0.158)
OKLCHoklch(35.67% 0.158 269.6)
XYZxyz(6.3095, 4.0905, 25.6511)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D8D #8D7F1F
analogous
#1F648D #1F2D8D #481F8D
triadic
#1F2D8D #8D1F2D #2D8D1F
tetradic
#1F2D8D #8D1F64 #8D7F1F #1F8D48
square
#1F2D8D #8D1F64 #8D7F1F #1F8D48
split-complementary
#1F2D8D #8D481F #648D1F
monochromatic
#090D29 #141D5B #1F2D8D #2A3DBF #4E60D8

Accessibility & contrast

On white

11.55
#1F2D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F2D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D8D
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D8D#FFFFFF#000000##FFFFFF
##1F2D8D1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2d8d;
/* rgb */ color: rgb(31, 45, 141);
/* oklch */ color: oklch(35.7% 0.158 269.6);
Tailwind
colors: {
  custom: {
    50: '#6e66af',
    500: '#1f2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d8d;
$custom-light: #6e66af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d8d",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 232.364,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35665,
    "c": 0.15803,
    "h": 269.6
  },
  "luminance": 0.04091
}

Semantic roles & 50–950 ramp

primary
#1F2D8D
secondary
#BBAD4D
accent
#D241E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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