#1F2D75#1F2D75

#1F2D75 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.4% C 0.124 H 269.9°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#1F2D75
RGBrgb(31, 45, 117)
HSLhsl(230, 58%, 29%)
HSVhsv(230, 74%, 46%)
CMYKcmyk(73.5%, 61.5%, 0%, 54.1%)
CIE-LABlab(21.77, 20.89, -43.09)
CIE-LCHlch(21.77, 47.88, 295.87°)
OKLaboklab(33.37% -0.0002 -0.1242)
OKLCHoklch(33.37% 0.124 269.9)
XYZxyz(4.7132, 3.4520, 17.2441)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D75 #75671F
analogous
#1F5875 #1F2D75 #3C1F75
triadic
#1F2D75 #751F2D #2D751F
tetradic
#1F2D75 #751F58 #75671F #1F753C
square
#1F2D75 #751F58 #75671F #1F753C
split-complementary
#1F2D75 #753C1F #58751F
monochromatic
#060918 #121A45 #1F2D75 #2C40A5 #4258CD

Accessibility & contrast

On white

12.42
#1F2D75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F2D75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D75
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D75#FFFFFF#000000##FFFFFF
##1F2D751.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003877
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#003F4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2d75;
/* rgb */ color: rgb(31, 45, 117);
/* oklch */ color: oklch(33.4% 0.124 269.9);
Tailwind
colors: {
  custom: {
    50: '#67659d',
    500: '#1f2d75',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d75;
$custom-light: #67659d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d75",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 117
  },
  "hsl": {
    "h": 230.233,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33367,
    "c": 0.12425,
    "h": 269.9
  },
  "luminance": 0.03452
}

Semantic roles & 50–950 ramp

primary
#1F2D75
secondary
#A99947
accent
#C846E1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #1F2D75

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

Preview Lab → · Contrast checker → · Palette generator →

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