#1F23A6#1F23A6

#1F23A6 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 36.8% C 0.200 H 269.9°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#1F23A6
RGBrgb(31, 35, 166)
HSLhsl(238, 69%, 39%)
HSVhsv(238, 81%, 65%)
CMYKcmyk(81.3%, 78.9%, 0%, 34.9%)
CIE-LABlab(24.47, 45.12, -69.12)
CIE-LCHlch(24.47, 82.54, 303.14°)
OKLaboklab(36.82% -0.0003 -0.2002)
OKLCHoklch(36.82% 0.2 269.9)
XYZxyz(8.0467, 4.2456, 36.4644)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F23A6 #A6A21F
analogous
#1F66A6 #1F23A6 #5E1FA6
triadic
#1F23A6 #A61F23 #23A61F
tetradic
#1F23A6 #A61F66 #A6A21F #1FA65E
square
#1F23A6 #A61F66 #A6A21F #1FA65E
split-complementary
#1F23A6 #A65E1F #66A61F
monochromatic
#0C0D3F #151872 #1F23A6 #2B30D7 #5E62E1

Accessibility & contrast

On white

11.36
#1F23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1F23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F23A6
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F23A6#FFFFFF#000000##FFFFFF
##1F23A61.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0033A4
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f23a6;
/* rgb */ color: rgb(31, 35, 166);
/* oklch */ color: oklch(36.8% 0.200 269.9);
Tailwind
colors: {
  custom: {
    50: '#7560c2',
    500: '#1f23a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f23a6;
$custom-light: #7560c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f23a6",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 238.222,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.36817,
    "c": 0.20019,
    "h": 269.9
  },
  "luminance": 0.04247
}

Semantic roles & 50–950 ramp

primary
#1F23A6
secondary
#C5C25B
accent
#E63CEB
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #1F23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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