#242FA1#242FA1

#242FA1 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.181 H 270.3°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#242FA1
RGBrgb(36, 47, 161)
HSLhsl(235, 63%, 39%)
HSVhsv(235, 78%, 63%)
CMYKcmyk(77.6%, 70.8%, 0%, 36.9%)
CIE-LABlab(26.68, 36.75, -62.42)
CIE-LCHlch(26.68, 72.44, 300.48°)
OKLaboklab(38.3% 0.001 -0.1807)
OKLCHoklch(38.3% 0.181 270.3)
XYZxyz(8.1749, 4.9804, 34.2418)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242FA1 #A19624
analogous
#246DA1 #242FA1 #5724A1
triadic
#242FA1 #A1242F #2FA124
tetradic
#242FA1 #A1246D #A19624 #24A157
square
#242FA1 #A1246D #A19624 #24A157
split-complementary
#242FA1 #A15724 #6DA124
monochromatic
#0E123D #19206F #242FA1 #313FD1 #636EDC

Accessibility & contrast

On white

10.52
#242FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#242FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242FA1
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242FA1#FFFFFF#000000##FFFFFF
##242FA11.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#00399F
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #242fa1;
/* rgb */ color: rgb(36, 47, 161);
/* oklch */ color: oklch(38.3% 0.181 270.3);
Tailwind
colors: {
  custom: {
    50: '#7468be',
    500: '#242fa1',
    950: '#000000',
  },
}
SCSS
$custom: #242fa1;
$custom-light: #7468be;
$custom-dark: #000000;
JSON
{
  "hex": "#242fa1",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 234.72,
    "s": 63.452,
    "l": 38.627
  },
  "oklch": {
    "l": 0.383,
    "c": 0.18072,
    "h": 270.3
  },
  "luminance": 0.04981
}

Semantic roles & 50–950 ramp

primary
#242FA1
secondary
#C2B95F
accent
#D841E6
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #242FA1

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

Preview Lab → · Contrast checker → · Palette generator →

#242FA1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva