#242F9E#242F9E

#242F9E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.177 H 270.4°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#242F9E
RGBrgb(36, 47, 158)
HSLhsl(235, 63%, 38%)
HSVhsv(235, 77%, 62%)
CMYKcmyk(77.2%, 70.3%, 0%, 38%)
CIE-LABlab(26.38, 35.67, -61.09)
CIE-LCHlch(26.38, 70.74, 300.28°)
OKLaboklab(37.99% 0.0014 -0.1768)
OKLCHoklch(37.99% 0.177 270.4)
XYZxyz(7.9135, 4.8759, 32.8652)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F9E #9E9324
analogous
#246C9E #242F9E #56249E
triadic
#242F9E #9E242F #2F9E24
tetradic
#242F9E #9E246C #9E9324 #249E56
square
#242F9E #9E246C #9E9324 #249E56
split-complementary
#242F9E #9E5624 #6C9E24
monochromatic
#0D113A #19206C #242F9E #2F3ED0 #616CDB

Accessibility & contrast

On white

10.63
#242F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#242F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F9E
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F9E#FFFFFF#000000##FFFFFF
##242F9E1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #242f9e;
/* rgb */ color: rgb(36, 47, 158);
/* oklch */ color: oklch(38.0% 0.177 270.4);
Tailwind
colors: {
  custom: {
    50: '#7468bc',
    500: '#242f9e',
    950: '#000000',
  },
}
SCSS
$custom: #242f9e;
$custom-light: #7468bc;
$custom-dark: #000000;
JSON
{
  "hex": "#242f9e",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 234.59,
    "s": 62.887,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37992,
    "c": 0.17685,
    "h": 270.4
  },
  "luminance": 0.04877
}

Semantic roles & 50–950 ramp

primary
#242F9E
secondary
#C0B75E
accent
#D742E6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #242F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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