#1F239E#1F239E

#1F239E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.191 H 270.4°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#1F239E
RGBrgb(31, 35, 158)
HSLhsl(238, 67%, 37%)
HSVhsv(238, 80%, 62%)
CMYKcmyk(80.4%, 77.8%, 0%, 38%)
CIE-LABlab(23.54, 42.44, -65.78)
CIE-LCHlch(23.54, 78.28, 302.83°)
OKLaboklab(35.9% 0.0012 -0.1905)
OKLCHoklch(35.9% 0.191 270.4)
XYZxyz(7.3356, 3.9612, 32.7191)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F239E #9E9A1F
analogous
#1F639E #1F239E #5A1F9E
triadic
#1F239E #9E1F23 #239E1F
tetradic
#1F239E #9E1F63 #9E9A1F #1F9E5A
square
#1F239E #9E1F63 #9E9A1F #1F9E5A
split-complementary
#1F239E #9E5A1F #639E1F
monochromatic
#0B0C38 #15186B #1F239E #292ED1 #595DDE

Accessibility & contrast

On white

11.72
#1F239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F239E
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F239E#FFFFFF#000000##FFFFFF
##1F239E1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA1
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f239e;
/* rgb */ color: rgb(31, 35, 158);
/* oklch */ color: oklch(35.9% 0.191 270.4);
Tailwind
colors: {
  custom: {
    50: '#7360bc',
    500: '#1f239e',
    950: '#000000',
  },
}
SCSS
$custom: #1f239e;
$custom-light: #7360bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f239e",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 238.11,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35896,
    "c": 0.19052,
    "h": 270.4
  },
  "luminance": 0.03962
}

Semantic roles & 50–950 ramp

primary
#1F239E
secondary
#C2BF56
accent
#E53EEA
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1F239E

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

Preview Lab → · Contrast checker → · Palette generator →

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