#1F2F75#1F2F75

#1F2F75 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.122 H 269.1°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#1F2F75
RGBrgb(31, 47, 117)
HSLhsl(229, 58%, 29%)
HSVhsv(229, 74%, 46%)
CMYKcmyk(73.5%, 59.8%, 0%, 54.1%)
CIE-LABlab(22.33, 19.48, -42.17)
CIE-LCHlch(22.33, 46.46, 294.80°)
OKLaboklab(33.79% -0.0019 -0.1215)
OKLCHoklch(33.79% 0.122 269.1)
XYZxyz(4.7914, 3.6082, 17.2701)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F75 #75651F
analogous
#1F5A75 #1F2F75 #3A1F75
triadic
#1F2F75 #751F2F #2F751F
tetradic
#1F2F75 #751F5A #75651F #1F753A
square
#1F2F75 #751F5A #75651F #1F753A
split-complementary
#1F2F75 #753A1F #5A751F
monochromatic
#060A18 #121C45 #1F2F75 #2C42A5 #425BCD

Accessibility & contrast

On white

12.20
#1F2F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2F75
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F75#FFFFFF#000000##FFFFFF
##1F2F751.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003977
Deuteranopia (green-blind)
#003274
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2f75;
/* rgb */ color: rgb(31, 47, 117);
/* oklch */ color: oklch(33.8% 0.122 269.1);
Tailwind
colors: {
  custom: {
    50: '#67679d',
    500: '#1f2f75',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f75;
$custom-light: #67679d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f75",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 117
  },
  "hsl": {
    "h": 228.837,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33786,
    "c": 0.12155,
    "h": 269.1
  },
  "luminance": 0.03609
}

Semantic roles & 50–950 ramp

primary
#1F2F75
secondary
#A99747
accent
#C546E1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #1F2F75

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

Preview Lab → · Contrast checker → · Palette generator →

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