#1F2E75#1F2E75

#1F2E75 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.123 H 269.5°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#1F2E75
RGBrgb(31, 46, 117)
HSLhsl(230, 58%, 29%)
HSVhsv(230, 74%, 46%)
CMYKcmyk(73.5%, 60.7%, 0%, 54.1%)
CIE-LABlab(22.05, 20.19, -42.63)
CIE-LCHlch(22.05, 47.17, 295.34°)
OKLaboklab(33.58% -0.001 -0.1229)
OKLCHoklch(33.58% 0.123 269.5)
XYZxyz(4.7519, 3.5292, 17.2569)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E75 #75661F
analogous
#1F5975 #1F2E75 #3B1F75
triadic
#1F2E75 #751F2E #2E751F
tetradic
#1F2E75 #751F59 #75661F #1F753B
square
#1F2E75 #751F59 #75661F #1F753B
split-complementary
#1F2E75 #753B1F #59751F
monochromatic
#060A18 #121B45 #1F2E75 #2C41A5 #425ACD

Accessibility & contrast

On white

12.31
#1F2E75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F2E75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E75
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E75#FFFFFF#000000##FFFFFF
##1F2E751.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2e75;
/* rgb */ color: rgb(31, 46, 117);
/* oklch */ color: oklch(33.6% 0.123 269.5);
Tailwind
colors: {
  custom: {
    50: '#67669d',
    500: '#1f2e75',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e75;
$custom-light: #67669d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e75",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 117
  },
  "hsl": {
    "h": 229.535,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33576,
    "c": 0.1229,
    "h": 269.5
  },
  "luminance": 0.0353
}

Semantic roles & 50–950 ramp

primary
#1F2E75
secondary
#A99847
accent
#C646E1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #1F2E75

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

Preview Lab → · Contrast checker → · Palette generator →

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